Commit 31a5b2ff authored by Milan P. Stanić's avatar Milan P. Stanić
Browse files

main/hwdata: remove from repository

hwdata is provided by hwinfo, which is better suited  for Alpine
fixes #10716
parent fa1dd175
Pipeline #258 passed with stage
in 20 seconds
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hwdata
pkgver=0.327
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"
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="01a68d14ce9b90514a1ee614090c0d451fc6f5ef69c78f9018252e67ee505c02966573df09db6bb1c633adef36bb1e0ff216bff57f21888ee7948b0639787e5a hwdata-0.327.tar.gz
88a786d8feb5c8b7de587ac70f3e4307d10ac5ed9b0edfc8711de1ba51808ca33a76df518cb5a508215c309289a079a778a91c3e6fc359d644d230de8d23f049 install-T.patch"
--- ./Makefile.orig 2014-04-22 06:38:35.320410230 +0000
+++ ./Makefile 2014-04-22 06:39:15.260889885 +0000
@@ -33,7 +33,7 @@
install -m 644 $$foo $(DESTDIR)$(datadir)/$(NAME) ;\
done
mkdir -p -m 755 $(DESTDIR)$(libdir)/modprobe.d
- install -m 644 -T blacklist.conf $(DESTDIR)$(libdir)/modprobe.d/dist-blacklist.conf
+ install -m 644 blacklist.conf $(DESTDIR)$(libdir)/modprobe.d/dist-blacklist.conf
commit:
git commit -a ||:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment