summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD43
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ed551679332
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = lib32-libpciaccess-git
+ pkgdesc = X11 PCI access library (32-bit
+ pkgver = 0.16
+ pkgrel = 1
+ url = https://xorg.freedesktop.org/
+ arch = x86_64
+ license = custom
+ makedepends = gcc-multilib
+ makedepends = pkgconfig
+ makedepends = xorg-util-macros
+ depends = lib32-glibc
+ depends = libpciaccess
+ provides = lib32-libpciaccess
+ conflicts = lib32-libpciaccess
+ source = git+https://gitlab.freedesktop.org/xorg/lib/libpciaccess
+ sha512sums = SKIP
+
+pkgname = lib32-libpciaccess-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..793cbfaeab0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Vincent Grande <shoober420@gmail.com>
+# Contributor: Jan de Groot <jgc@archlinux.org>
+# Contributor: Alexander Baldeck <alexander@archlinux.org>
+
+pkgname=lib32-libpciaccess-git
+pkgver=0.16
+pkgrel=1
+pkgdesc="X11 PCI access library (32-bit"
+arch=(x86_64)
+license=('custom')
+provides=('lib32-libpciaccess')
+conflicts=('lib32-libpciaccess')
+url="https://xorg.freedesktop.org/"
+depends=('lib32-glibc' 'libpciaccess')
+makedepends=('gcc-multilib' 'pkgconfig' 'xorg-util-macros')
+source=(git+https://gitlab.freedesktop.org/xorg/lib/libpciaccess)
+sha512sums=('SKIP')
+
+pkgver() {
+ cd libpciaccess
+ git describe --tags | sed 's/-/+/g'
+}
+
+build() {
+ cd libpciaccess
+
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ ./configure --prefix=/usr --sysconfdir=/etc \
+ --libdir=/usr/lib32
+ make
+}
+
+package() {
+ cd libpciaccess
+ make DESTDIR="${pkgdir}" install
+
+ rm -rf "${pkgdir}"/usr/include
+ mkdir -p "$pkgdir/usr/share/licenses"
+ ln -s libpciaccess "$pkgdir/usr/share/licenses/$pkgname"
+}