From 74a79fa0a72e344bfb04cff29a9d8b840b713c79 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 29 Oct 2012 09:41:43 +0000 Subject: main/hwdata: moved from testing ref #1455 --- main/hwdata/APKBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ testing/hwdata/APKBUILD | 53 ------------------------------------------------- 2 files changed, 53 insertions(+), 53 deletions(-) create mode 100644 main/hwdata/APKBUILD delete mode 100644 testing/hwdata/APKBUILD diff --git a/main/hwdata/APKBUILD b/main/hwdata/APKBUILD new file mode 100644 index 000000000..d6bb344f6 --- /dev/null +++ b/main/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" diff --git a/testing/hwdata/APKBUILD b/testing/hwdata/APKBUILD deleted file mode 100644 index d6bb344f6..000000000 --- a/testing/hwdata/APKBUILD +++ /dev/null @@ -1,53 +0,0 @@ -# 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" -- cgit v1.2.3