#!/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"
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=b43-fwcutter
pkgver=019
pkgrel=03
pkgdesc="firmware extractor for the b43 kernel module"
url="https://wireless.wiki.kernel.org/en/users/Drivers/b43"
depends=('glibc')
arch=('x86_64')
source=("https://bues.ch/b43/fwcutter/${pkgname}-${pkgver}.tar.bz2"{,.asc})

build() {
	cd $pkgname-$pkgver
	make
}

package() {
	cd $pkgname-$pkgver
	install -D -m755 b43-fwcutter "$pkgdir"/usr/bin/b43-fwcutter
	install -D -m644 b43-fwcutter.1 "$pkgdir"/usr/share/man/man1/b43-fwcutter.1
}

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

license=('GPL')

validpgpkeys=('757FAB7CED1814AE15B4836E5FB027474203454C') # Michael Büsch (Git tag signing key) <m@bues.ch>

md5sums=('19d1f4226a625756726bdf7ed5dc2a0a'
         'SKIP')

sha256sums=(d6ea85310df6ae08e7f7e46d8b975e17fc867145ee249307413cfbe15d7121ce # b43-fwcutter-019.tar.bz2
	f4dc7a63e6fc858058c5ce38bd36d0ead45c5e9710648c702dea2cccf7e0f32b) #  b43-fwcutter-019.tar.bz2.asc
