aboutsummaryrefslogtreecommitdiffstats
path: root/main/pciutils
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-08-15 02:37:07 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-08-28 08:40:44 +0000
commit640d639f9269d69dbbd85f0a1aa4ac5bcadeb597 (patch)
tree91a99953ea95aeabc6e665149037633b86fc6040 /main/pciutils
parent2d28bfe93da1629afdcceb75204d9527eee4dea1 (diff)
downloadaports-640d639f9269d69dbbd85f0a1aa4ac5bcadeb597.tar.bz2
aports-640d639f9269d69dbbd85f0a1aa4ac5bcadeb597.tar.xz
main/pciutils: modernise and mark as having no tests
Diffstat (limited to 'main/pciutils')
-rw-r--r--main/pciutils/APKBUILD29
1 files changed, 8 insertions, 21 deletions
diff --git a/main/pciutils/APKBUILD b/main/pciutils/APKBUILD
index 597ed43cde..4b6e633e27 100644
--- a/main/pciutils/APKBUILD
+++ b/main/pciutils/APKBUILD
@@ -2,13 +2,14 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=pciutils
pkgver=3.5.4
-pkgrel=0
+pkgrel=1
pkgdesc="PCI bus configuration space access library and tools"
url="http://mj.ucw.cz/pciutils.html"
arch="all"
license="GPL"
depends="hwdata-pci"
makedepends="linux-headers"
+options="!check"
install=
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs"
source="http://www.kernel.org/pub/software/utils/$pkgname/$pkgname-$pkgver.tar.gz
@@ -16,31 +17,19 @@ source="http://www.kernel.org/pub/software/utils/$pkgname/$pkgname-$pkgver.tar.g
pread.patch
"
-_builddir="$srcdir"/$pkgname-$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"
+ cd "$builddir"
sed -i -e "106s/^/\#/" Makefile
make OPT="$CFLAGS" ZLIB=no \
SHARED=yes \
PREFIX=/usr \
SHAREDIR=/usr/share/hwdata \
MANDIR=/usr/share/man \
- all || return 1
+ all
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make PREFIX="$pkgdir"/usr \
SHARED=yes \
SHAREDIR="$pkgdir"/usr/share/hwdata \
@@ -48,12 +37,10 @@ package() {
install
install -d "$pkgdir"/usr/lib
- ln -s libpci.so.${pkgver%%.*} "$pkgdir"/usr/lib/libpci.so || return 1
- install -D -m 644 lib/libpci.pc "$pkgdir"/usr/lib/pkgconfig/libpci.pc \
- || return 1
+ ln -s libpci.so.${pkgver%%.*} "$pkgdir"/usr/lib/libpci.so
+ install -D -m 644 lib/libpci.pc "$pkgdir"/usr/lib/pkgconfig/libpci.pc
for i in config.h header.h pci.h types.h; do
- install -D -m 644 lib/${i} "$pkgdir"/usr/include/pci/${i} \
- || return 1
+ install -D -m 644 lib/${i} "$pkgdir"/usr/include/pci/${i}
done
}