#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=debugedit
pkgver=5.0
pkgrel=04
pkgdesc='Tool to mangle source locations in .debug files'
arch=('x86_64')
url='https://sourceware.org/debugedit/'
depends=('libelf')
groups=('base-devel')
source=("https://sourceware.org/ftp/debugedit/${pkgver}/debugedit-${pkgver}.tar.xz"{,.sig})

build() {
    cd "${srcdir}/debugedit-${pkgver}"
    autoreconf -i -f
    ./configure --prefix=/usr
    make
}

package() {
    cd "${srcdir}/debugedit-${pkgver}"
    make DESTDIR="${pkgdir}" install
}

#---- license gpg-key sha256sums ----

license=('LGPL2.1')

validpgpkeys=('EC3CFE88F6CA0788774F5C1D1AA44BE649DE760A')

sha512sums=('7e7f529eafe41b53f0b5bfc58282fdbfa0dfa93ed7908b70e81942d6d2b6f80fc9c6bff2ed9674fd98947e5750b615f4c8b222544989e2900c5f8ff5ae0efb92'
            'SKIP')

sha256sums=(e9ecd7d350bebae1f178ce6776ca19a648b6fe8fa22f5b3044b38d7899aa553e  # debugedit-5.0.tar.xz
	4fd8c44986d734196103ed2b630928949ed2ea48e0757c7a9e3d6f3b87cf00a7) # debugedit-5.0.tar.xz.sig


