summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..be8cc9183cb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Contributor: Laurent Tréguier <laurent@treguier.org>
+
+pkgname=libui
+pkgver=0.3.1.alpha
+_pkgver=alpha3.1
+pkgrel=1
+pkgdesc='A portable GUI library for C'
+arch=('i686' 'x86_64')
+url='https://github.com/andlabs/libui'
+license=('MIT')
+depends=('gtk3' 'libx11' 'libxcb' 'libffi')
+makedepends=('cmake')
+provides=('libui')
+conflicts=('libui-git')
+source=("https://github.com/andlabs/libui/archive/${_pkgver}.tar.gz")
+md5sums=('4b062e47615b2156377e4b8482c89d22')
+
+build() {
+ cd "${srcdir}/${pkgname}-${_pkgver}"
+ mkdir build
+ cd build
+ cmake ..
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${_pkgver}"
+ install -d "${pkgdir}/usr/"{include,lib}
+ install -Dm644 ui.h "${pkgdir}/usr/include"
+ install -Dm644 ui_unix.h "${pkgdir}/usr/include"
+ install -Dm755 build/out/libui.so.0 "${pkgdir}/usr/lib"
+ ln -s libui.so.0 "${pkgdir}/usr/lib/libui.so"
+}