summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurentTreguier2016-07-15 15:37:33 +0200
committerLaurentTreguier2016-07-15 15:41:39 +0200
commit298f4b18fec242912ab7d3de109b2fe7bdf8b9a5 (patch)
tree1dd0b5fa3e16621dd508d58c341504024fcc966d
downloadaur-298f4b18fec242912ab7d3de109b2fe7bdf8b9a5.tar.gz
Initial commit
-rw-r--r--.SRCINFO22
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD33
3 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4823ba28137
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+# Generated by mksrcinfo v8
+# Fri Jul 15 13:38:24 UTC 2016
+pkgbase = libui
+ pkgdesc = A portable GUI library for C
+ pkgver = 0.3.1.alpha
+ pkgrel = 1
+ url = https://github.com/andlabs/libui
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = cmake
+ depends = gtk3
+ depends = libx11
+ depends = libxcb
+ depends = libffi
+ provides = libui
+ conflicts = libui
+ source = https://github.com/andlabs/libui/archive/alpha3.1.tar.gz
+ md5sums = 4b062e47615b2156377e4b8482c89d22
+
+pkgname = libui
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..0812e9ca93f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+src
+pkg
+*.tar.*
+.vscode \ No newline at end of file
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"
+}