mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 23:22:24 +01:00
50 lines
1.4 KiB
Plaintext
50 lines
1.4 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=hwdata
|
|
pkgver=0.318
|
|
pkgrel=0
|
|
pkgdesc="Hardware identification and configuration data"
|
|
url="https://github.com/vcrhonek/hwdata"
|
|
arch="noarch"
|
|
license="GPL-2.0-or-later"
|
|
makedepends="bash"
|
|
subpackages="$pkgname-usb $pkgname-pci $pkgname-pnp $pkgname-oui"
|
|
options="!check" # requires pciutils, which causes build loop
|
|
depends="$subpackages"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/vcrhonek/hwdata/archive/v$pkgver.tar.gz
|
|
install-T.patch"
|
|
|
|
builddir="$srcdir"/hwdata-$pkgver
|
|
|
|
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="169928eac03b24421d05d54821a54dde28736096847604aa7662e58f6d619b5b71f75827875a3c39f89e2e3378d413cad556765d598dfa92155bddb62e620e3e hwdata-0.318.tar.gz
|
|
88a786d8feb5c8b7de587ac70f3e4307d10ac5ed9b0edfc8711de1ba51808ca33a76df518cb5a508215c309289a079a778a91c3e6fc359d644d230de8d23f049 install-T.patch"
|