summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSefa Eyeoglu2021-07-01 15:23:38 +0200
committerSefa Eyeoglu2021-07-01 15:23:38 +0200
commit7d41d7f17ca105588fbfc4f2ef628af96952f3ed (patch)
tree3602d3e71da3797a2e75cfef2922f8179764b716
downloadaur-7d41d7f17ca105588fbfc4f2ef628af96952f3ed.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD34
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9c56f55ca9d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = libliftoff
+ pkgdesc = Lightweight KMS plane library
+ pkgver = 0.1.0
+ pkgrel = 1
+ url = https://github.com/emersion/libliftoff
+ arch = x86_64
+ license = custom:MIT
+ makedepends = git
+ makedepends = meson
+ makedepends = ninja
+ depends = libdrm
+ source = libliftoff::git+https://github.com/emersion/libliftoff.git#tag=v0.1.0
+ sha512sums = SKIP
+
+pkgname = libliftoff
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7cc8de7687d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Sefa Eyeoglu <contact@scrumplex.net>
+
+pkgname=libliftoff
+pkgver=0.1.0
+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")
+source=("$pkgname::git+https://github.com/emersion/libliftoff.git#tag=v${pkgver}")
+sha512sums=('SKIP')
+
+
+build() {
+
+ meson --prefix /usr --buildtype=release "$pkgname" build
+ ninja -C build
+}
+
+check() {
+
+ ninja -C build test
+}
+
+package() {
+ DESTDIR="$pkgdir" ninja -C build install
+
+ cd "$pkgname"
+
+ install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+}