diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-08 19:58:15 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-08 19:58:15 -0500 |
commit | 02730461b1a637092784ca8fede7aed510a673c4 (patch) | |
tree | 730e9840ade05e6d77044e62155774ac374f43bc /user | |
parent | 9921a34f1f7691355a4cad384e7ea02a76269c9b (diff) | |
download | packages-02730461b1a637092784ca8fede7aed510a673c4.tar.gz packages-02730461b1a637092784ca8fede7aed510a673c4.tar.bz2 packages-02730461b1a637092784ca8fede7aed510a673c4.tar.xz packages-02730461b1a637092784ca8fede7aed510a673c4.zip |
user/libpciaccess: pull in, take, bump, fix
Diffstat (limited to 'user')
-rw-r--r-- | user/libpciaccess/APKBUILD | 37 | ||||
-rw-r--r-- | user/libpciaccess/fix-arm.patch | 11 | ||||
-rw-r--r-- | user/libpciaccess/limits_h.patch | 10 |
3 files changed, 58 insertions, 0 deletions
diff --git a/user/libpciaccess/APKBUILD b/user/libpciaccess/APKBUILD new file mode 100644 index 000000000..73f05fddd --- /dev/null +++ b/user/libpciaccess/APKBUILD @@ -0,0 +1,37 @@ +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=libpciaccess +pkgver=0.14 +pkgrel=0 +pkgdesc="X11 PCI access library" +url="https://cgit.freedesktop.org/xorg/lib/libpciaccess/" +arch="all" +license="MIT AND X11" +makedepends="util-macros" +subpackages="$pkgname-dev $pkgname-doc" +source="http://www.x.org/releases/individual/lib/$pkgname-$pkgver.tar.bz2 + fix-arm.patch + limits_h.patch" + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING +} + +sha512sums="bf40214dfd22f2a223f7c948566e6eaa4bfed60116e71b3eb19f6fe7ab2c4546649eb0416c06d5983e476ea5e27de036936646eb5f800ea97763b6d1f1976f4b libpciaccess-0.14.tar.bz2 +a6c95f42c926ffcd62014cf619c6aacf8db3b1862fa87c8eae9c3e64f31fcaddb682d34c767756bede5d2949a7285a415ca1d14249713bc12514c8e40f9d989f fix-arm.patch +331a498059d8b2bfd0a7da0ced3616266ebc129b785090ef1dc19cd645b013428c60d5678fc080bd15ecaf7598ec8b1084509d6bea5d563101169a449b6fe75b limits_h.patch" diff --git a/user/libpciaccess/fix-arm.patch b/user/libpciaccess/fix-arm.patch new file mode 100644 index 000000000..4a59ae906 --- /dev/null +++ b/user/libpciaccess/fix-arm.patch @@ -0,0 +1,11 @@ +--- libpciaccess-0.13.2.orig/src/linux_sysfs.c ++++ libpciaccess-0.13.2/src/linux_sysfs.c +@@ -46,7 +46,7 @@ + #include <errno.h> + #include <limits.h> + +-#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) ++#if defined(__i386__) || defined(__x86_64__) + #include <sys/io.h> + #else + #define inb(x) -1 diff --git a/user/libpciaccess/limits_h.patch b/user/libpciaccess/limits_h.patch new file mode 100644 index 000000000..6e0d7eeab --- /dev/null +++ b/user/libpciaccess/limits_h.patch @@ -0,0 +1,10 @@ +--- a/src/linux_sysfs.c ++++ b/src/linux_sysfs.c +@@ -48,6 +48,7 @@ + #include <sys/mman.h> + #include <dirent.h> + #include <errno.h> ++#include <limits.h> + + #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) + #include <sys/io.h> |