summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12017-11-21 05:11:42 +0800
committerChocobo12017-11-21 05:12:39 +0800
commitb3bd85b9c0fa2dfeab2e78ebe83fd922fc40a2b1 (patch)
treec0cc63618af87126bd0f3b2bf5b1c466808d40ee
parentac13119377f15d3a8104b279767bbaf5eb8bbb92 (diff)
downloadaur-b3bd85b9c0fa2dfeab2e78ebe83fd922fc40a2b1.tar.gz
upgpkg: pciutils-git 3.5.6.r1.ge4d209f-1
Fix shared lib libpci not found
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD16
2 files changed, 14 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f2364ed926e..b27b90c5bfa 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = pciutils-git
pkgdesc = Programs for inspecting and manipulating configuration of PCI devices
- pkgver = 3.5.5.r0.gdfd15a8
+ pkgver = 3.5.6.r1.ge4d209f
pkgrel = 1
url = http://mj.ucw.cz/sw/pciutils/
arch = i686
@@ -8,10 +8,12 @@ pkgbase = pciutils-git
license = GPL2
makedepends = git
depends = glibc
+ depends = sh
depends = hwids
depends = kmod
provides = pciutils
conflicts = pciutils
+ options = staticlibs
source = git+https://git.kernel.org/pub/scm/utils/pciutils/pciutils.git
sha256sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 992cd9523ca..219d2e854a4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,17 @@
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=pciutils-git
-pkgver=3.5.5.r0.gdfd15a8
+pkgver=3.5.6.r1.ge4d209f
pkgrel=1
pkgdesc="Programs for inspecting and manipulating configuration of PCI devices"
arch=('i686' 'x86_64')
url="http://mj.ucw.cz/sw/pciutils/"
license=('GPL2')
-depends=('glibc' 'hwids' 'kmod')
+depends=('glibc' 'sh' 'hwids' 'kmod')
makedepends=('git')
provides=('pciutils')
conflicts=('pciutils')
+options=('staticlibs')
source=("git+https://git.kernel.org/pub/scm/utils/pciutils/pciutils.git")
sha256sums=('SKIP')
@@ -21,17 +22,22 @@ pkgver() {
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
-_OPTIONS='SHARED=yes ZLIB=no'
build() {
cd "pciutils"
- make OPT="$CFLAGS" "$_OPTIONS"
+ make OPT="$CFLAGS" SHARED=no ZLIB=no
+ cp "lib/libpci.a" "$srcdir"
+
+ make clean
+ make OPT="$CFLAGS" SHARED=yes ZLIB=no
}
package() {
cd "pciutils"
- make DESTDIR="$pkgdir" PREFIX="/usr" SBINDIR="/usr/bin" SHAREDIR="/usr/share/hwdata" "$_OPTIONS" install install-lib
+ make DESTDIR="$pkgdir" PREFIX="/usr" SBINDIR="/usr/bin" SHAREDIR="/usr/share/hwdata" SHARED=yes ZLIB=no install install-lib
+
+ install -m644 "$srcdir/libpci.a" "$pkgdir/usr/lib"
# supplied by hwids package
rm -rf "$pkgdir/usr/share/hwdata"