summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorVincent Grande2020-09-20 14:22:50 -0400
committerVincent Grande2020-09-20 14:22:50 -0400
commit69dd8bd5998b8c7bdd896ab2e73389eb7f1885bb (patch)
treef423b5d4ad9188e98da98f413542e0373d48c1b9 /PKGBUILD
downloadaur-69dd8bd5998b8c7bdd896ab2e73389eb7f1885bb.tar.gz
initial upload
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD43
1 files changed, 43 insertions, 0 deletions
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"
+}