blob: e0587ee7e1d25e0c409fd30a773807d9cdba35ea (
plain) (
tree)
|
|
# Maintainer:
pkgname=hwdata
pkgver=0.315
pkgrel=0
pkgdesc="Hardware identification and configuration data"
url="https://github.com/vcrhonek/hwdata"
arch="noarch"
options="!check" # requires pciutils, which causes build loop
license="GPL-2.0+"
subpackages="$pkgname-usb $pkgname-pci $pkgname-pnp $pkgname-oui"
depends="$subpackages"
makedepends="bash"
source="$pkgname-$pkgver.tar.gz::https://github.com/vcrhonek/hwdata/archive/v$pkgver.tar.gz
install-T.patch"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--datadir=/usr/share
# nothing to make
}
package() {
cd "$builddir"
make -j1 DESTDIR="$pkgdir" install
# remove modprobe blacklist
rm -r "$pkgdir"/usr/lib
}
_mv() {
pkgdesc="$pkgdesc - $1"
depends=""
mkdir -p "$subpkgdir"/usr/share/hwdata
mv "$pkgdir"/usr/share/hwdata/$1 "$subpkgdir"/usr/share/hwdata
}
usb() { replaces="usbutils"; _mv usb.ids; }
pci() { replaces="pciutils"; _mv pci.ids; }
pnp() { _mv pnp.ids; }
oui() { _mv oui.txt; }
sha512sums="143f51f9bf1415a73051fd2c81372c7acd8b133a87285b74b6923e95cc92f26cd7e7a758d73823a0f13e7a478afb2c967be53de76e626a5514cb8d4a0808af7d hwdata-0.315.tar.gz
88a786d8feb5c8b7de587ac70f3e4307d10ac5ed9b0edfc8711de1ba51808ca33a76df518cb5a508215c309289a079a778a91c3e6fc359d644d230de8d23f049 install-T.patch"
|