summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSefa Eyeoglu2020-05-21 20:08:33 +0200
committerSefa Eyeoglu2020-05-21 20:08:33 +0200
commitd02c94576e051974a770a1788cd063df95a692ea (patch)
treed12b47b948a74dbbe79f1abb3ed47327b9519271
downloadaur-d02c94576e051974a770a1788cd063df95a692ea.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD43
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..d29a61309a3b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = libliftoff-git
+ pkgdesc = Lightweight KMS plane library
+ pkgver = r126.2b02f50
+ pkgrel = 1
+ url = https://github.com/emersion/libliftoff
+ arch = x86_64
+ license = custom:MIT
+ makedepends = git
+ makedepends = meson
+ makedepends = ninja
+ depends = libdrm
+ provides = libliftoff
+ conflicts = libliftoff
+ source = git+https://github.com/emersion/libliftoff.git
+ sha512sums = SKIP
+
+pkgname = libliftoff-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..0a1354f60633
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Sefa Eyeoglu <contact@scrumplex.net>
+
+_pkgname=libliftoff
+pkgname=${_pkgname}-git
+pkgver=r126.2b02f50
+pkgrel=1
+pkgdesc="Lightweight KMS plane library"
+arch=(x86_64)
+url="https://github.com/emersion/libliftoff"
+license=("custom:MIT")
+depends=("libdrm")
+makedepends=("git" "meson" "ninja")
+provides=($_pkgname)
+conflicts=($_pkgname)
+source=("git+https://github.com/emersion/libliftoff.git")
+sha512sums=('SKIP')
+
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+
+ meson --prefix /usr --buildtype=release "$srcdir/$_pkgname" build
+ ninja -C build
+}
+
+check() {
+
+ ninja -C build test
+}
+
+package() {
+ DESTDIR="$pkgdir" ninja -C build install
+
+ cd "$srcdir/$_pkgname"
+
+ install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
+}