aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-10-24 08:10:12 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-10-24 08:10:12 +0000
commit71aa572d4710eb744107dcb3fada9c03fa6cc853 (patch)
tree235cb8e880fc0da133efbee95ac9b1b45f18b0d4
parent6d78fec75b55d5d04a9527e00add6dd205fbd5b0 (diff)
parent77f29f5b03a9f44fba6f3e0854ec1ab36a8bde47 (diff)
downloadaports-71aa572d4710eb744107dcb3fada9c03fa6cc853.tar.bz2
aports-71aa572d4710eb744107dcb3fada9c03fa6cc853.tar.xz
Merge git://dev.alpinelinux.org/aports
-rw-r--r--main/scons/APKBUILD (renamed from testing/scons/APKBUILD)0
-rw-r--r--testing/hwdata/APKBUILD53
2 files changed, 53 insertions, 0 deletions
diff --git a/testing/scons/APKBUILD b/main/scons/APKBUILD
index 5aa6abd188..5aa6abd188 100644
--- a/testing/scons/APKBUILD
+++ b/main/scons/APKBUILD
diff --git a/testing/hwdata/APKBUILD b/testing/hwdata/APKBUILD
new file mode 100644
index 0000000000..d6bb344f60
--- /dev/null
+++ b/testing/hwdata/APKBUILD
@@ -0,0 +1,53 @@
+# Maintainer: Natanael Copa
+pkgname=hwdata
+pkgver=0.240
+pkgrel=0
+pkgdesc="Hardware identification and configuration data"
+url="http://git.fedorahosted.org/git/hwdata.git"
+arch="noarch"
+license="GPLv2+"
+makedepends="bash"
+install=""
+subpackages="$pkgname-usb $pkgname-pci $pkgname-pnp $pkgname-oui"
+depends="$subpackages"
+source="http://fedorahosted.org/releases/h/w/hwdata/hwdata-$pkgver.tar.bz2"
+
+_builddir="$srcdir"/hwdata-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --datadir=/usr/share \
+ || return 1
+ # nothing to make
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ # remove modprobe blacklist
+ rm -r "$pkgdir"/etc/
+}
+
+_mv() {
+ pkgdesc="$pkgdesc - $1"
+ mkdir -p "$subpkgdir"/usr/share/hwdata
+ mv "$pkgdir"/usr/share/hwdata/$1 "$subpkgdir"/usr/share/hwdata
+}
+
+usb() { _mv usb.ids; }
+pci() { _mv pci.ids; }
+pnp() { _mv pnp.ids; }
+oui() { _mv oui.txt; }
+
+md5sums="e7fbd88a28a6acea05feb6064bb49f2c hwdata-0.240.tar.bz2"