#!/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=05
pkgdesc='Tool to mangle source locations in .debug files'
url='https://sourceware.org/debugedit/'
depends=('libelf')
source=("https://sourceware.org/ftp/debugedit/${pkgver}/debugedit-${pkgver}.tar.xz"{,.sig})

prepare() {
    cd "debugedit-${pkgver}"
    autoreconf -fiv
}

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

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

#---- arch license gpg-key & sha256sums ----

arch=(x86_64)

license=('LGPL2.1')

validpgpkeys=('EC3CFE88F6CA0788774F5C1D1AA44BE649DE760A')

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

##  0a4da524d6979b6bbc223e23b5823ce01f2f5d459eb96d5b95a68d8a5b62d3e9  debugedit-5.0-05-x86_64.pkg.tar.lz

