summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsL1pKn072019-09-01 17:00:36 +0200
committersL1pKn072019-09-01 17:00:36 +0200
commit9513d079b790cc4ba2f4b51232a02656563f6a5b (patch)
treec43d2b92266d999783e3fd9a6ad358bc32b52121
downloadaur-9513d079b790cc4ba2f4b51232a02656563f6a5b.tar.gz
Initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD60
3 files changed, 85 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..31a23abd31b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = lib32-libplacebo-git
+ pkgdesc = Reusable library for GPU-accelerated video/image rendering primitives. (GIT version)
+ pkgver = v1.18.0.20.g22a9919
+ pkgrel = 1
+ url = https://github.com/haasn/libplacebo
+ arch = x86_64
+ license = LGPL2.1
+ makedepends = git
+ makedepends = meson
+ makedepends = ninja
+ makedepends = vulkan-headers
+ depends = lib32-vulkan-icd-loader
+ depends = lib32-lcms2
+ depends = lib32-shaderc
+ provides = lib32-libplacebo
+ conflicts = lib32-libplacebo
+ source = git+https://github.com/haasn/libplacebo.git
+ sha256sums = SKIP
+
+pkgname = lib32-libplacebo-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..05c6d4d4c97
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!.SRCINFO
+!PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ee3e1f169db
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,60 @@
+# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
+# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=lib32-libplacebo-git
+pkgver=v1.18.0.20.g22a9919
+pkgrel=1
+pkgdesc='Reusable library for GPU-accelerated video/image rendering primitives. (GIT version)'
+url='https://github.com/haasn/libplacebo'
+arch=('x86_64')
+license=('LGPL2.1')
+depends=('lib32-vulkan-icd-loader'
+ 'lib32-lcms2'
+ 'lib32-shaderc'
+ )
+makedepends=('git'
+ 'meson'
+ 'ninja'
+ 'vulkan-headers'
+ )
+provides=('lib32-libplacebo')
+conflicts=('lib32-libplacebo')
+source=('git+https://github.com/haasn/libplacebo.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd libplacebo
+ echo "$(git describe --long --tags | tr - .)"
+}
+
+prepare() {
+ mkdir -p build
+}
+
+build() {
+ export CFLAGS="-m32"
+ export CXXFLAGS="-m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ cd build
+ arch-meson ../libplacebo \
+ --libdir=/usr/lib32 \
+ -D vulkan=enabled \
+ -D glslang=enabled \
+ -D shaderc=enabled \
+ -D lcms=enabled
+
+ ninja
+}
+
+check() {
+ ninja -C build test
+}
+
+package() {
+ DESTDIR="${pkgdir}" ninja -C build install
+
+ rm -rf "${pkgdir}/usr/include"
+
+ install -Dm644 libplacebo/README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+}