summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVytautas Mickus2021-04-20 18:30:32 +0200
committerVytautas Mickus2021-04-20 18:30:32 +0200
commit752da99c68cad819b7040f166cae621ec41fea01 (patch)
tree82ebc317f1ecf8ef918fb5c02e7ffecb5998b86b
downloadaur-752da99c68cad819b7040f166cae621ec41fea01.tar.gz
Initial Commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD42
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3707b19c2f3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = lib32-intel-gmmlib
+ pkgdesc = Intel Graphics Memory Management Library
+ pkgver = 21.1.1
+ pkgrel = 1
+ url = https://github.com/intel/gmmlib/
+ arch = x86_64
+ license = MIT
+ makedepends = cmake
+ depends = lib32-gcc-libs
+ provides = lib32-intel-gmmlib
+ conflicts = lib32-intel-gmmlib
+ replaces = lib32-intel-gmmlib
+ options = !emptydirs
+ source = https://github.com/intel/gmmlib/archive/intel-gmmlib-21.1.1.tar.gz
+ sha256sums = b996f09264e05ebca0dc275ea32791ba22769fe04147592371b4a61cdf508763
+
+pkgname = lib32-intel-gmmlib
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b1c658cf3d2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Bruno Pagani <archange@archlinux.org>
+# Maintainer: Daniel Bermond <dbermond@archlinux.org>
+
+pkgname=lib32-intel-gmmlib
+tarname=${pkgname/lib32-/}
+
+pkgver=21.1.1
+pkgrel=1
+pkgdesc="Intel Graphics Memory Management Library"
+arch=(x86_64)
+url="https://github.com/intel/gmmlib/"
+license=(MIT)
+depends=(lib32-gcc-libs)
+makedepends=(cmake)
+provides=(lib32-intel-gmmlib)
+conflicts=(lib32-intel-gmmlib)
+replaces=(lib32-intel-gmmlib)
+options=(!emptydirs)
+source=("https://github.com/${tarname/-//}/archive/${tarname}-${pkgver}.tar.gz")
+sha256sums=('b996f09264e05ebca0dc275ea32791ba22769fe04147592371b4a61cdf508763')
+
+build() {
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ cmake -B build -S gmmlib-${tarname}-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib32 \
+ -DRUN_TEST_SUITE=ON \
+ -Wno-dev
+ make -C build
+}
+
+package() {
+ make -C build DESTDIR="${pkgdir}" install
+
+ rm -r "$pkgdir/usr/include"
+
+ install -Dm644 gmmlib-${tarname}-${pkgver}/LICENSE.md -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}