summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrainpower2015-01-12 22:33:19 +0100
committerbrainpower2015-01-12 22:33:19 +0100
commita385f9c869a059d49743cc68b6daf296f9922a1b (patch)
tree1ded54906215c39d46b470cb73d45ec196161ed6
downloadaur-a385f9c869a059d49743cc68b6daf296f9922a1b.tar.gz
add sfgui-git PKGBUILD
-rw-r--r--.SRCINFO22
-rw-r--r--0001-add_cmake_module_install.patch9
-rw-r--r--PKGBUILD50
3 files changed, 81 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e4c301495cb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = sfgui-git
+ pkgdesc = SFGUI (Simple and Fast Graphical User Interface), a C++ GUI library for SFML.
+ pkgver = 0.2.3.r1.g5a17f40
+ pkgrel = 3
+ url = http://sfgui.sfml-dev.org/
+ arch = i686
+ arch = x86_64
+ license = zlib
+ makedepends = cmake
+ makedepends = git
+ depends = sfml-git
+ provides = sfgui
+ conflicts = sfgui
+ replaces = sfgui
+ options = debug
+ source = git+https://github.com/TankOs/SFGUI.git
+ source = 0001-add_cmake_module_install.patch
+ sha256sums = SKIP
+ sha256sums = 7015fd528b2f40f35dc917bc76364a92dd34aaacdd86e1571d2855c3e235a8f1
+
+pkgname = sfgui-git
+
diff --git a/0001-add_cmake_module_install.patch b/0001-add_cmake_module_install.patch
new file mode 100644
index 00000000000..ac148584ccc
--- /dev/null
+++ b/0001-add_cmake_module_install.patch
@@ -0,0 +1,9 @@
+--- CMakeLists.txt.orig 2015-01-12 21:59:21.901078640 +0100
++++ CMakeLists.txt 2015-01-12 22:00:22.368479491 +0100
+@@ -261,3 +261,6 @@
+ FILES README AUTHORS LICENSE FONT.LICENSE CHANGELOG
+ DESTINATION ${SHARE_PATH}
+ )
++
++set(CM_VER ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
++install(FILES cmake/FindSFGUI.cmake DESTINATION share/cmake-${CM_VER}/Modules)
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e15105e93eb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: oi_wtf <brainpower at gulli dot com>
+
+pkgname=sfgui-git
+pkgver=0.2.3.r1.g5a17f40
+pkgrel=3
+pkgdesc="SFGUI (Simple and Fast Graphical User Interface), a C++ GUI library for SFML."
+arch=('i686' 'x86_64')
+url="http://sfgui.sfml-dev.org/"
+license=('zlib')
+depends=('sfml-git')
+makedepends=('cmake' 'git')
+provides=('sfgui')
+conflicts=('sfgui')
+replaces=('sfgui')
+options=('debug')
+
+source=("git+https://github.com/TankOs/SFGUI.git"
+ "0001-add_cmake_module_install.patch")
+sha256sums=('SKIP'
+ '7015fd528b2f40f35dc917bc76364a92dd34aaacdd86e1571d2855c3e235a8f1')
+
+pkgver() {
+ cd "${srcdir}/SFGUI"
+ git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "${srcdir}/SFGUI"
+ patch -p0 -i "${srcdir}/0001-add_cmake_module_install.patch"
+}
+
+build() {
+ cd "$srcdir/SFGUI"
+
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo .
+ make
+}
+
+package() {
+ cd "$srcdir/SFGUI"
+
+ make DESTDIR="$pkgdir/" install
+
+ install -Dm644 ./LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+ install -Dm644 ./FONT.LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/FONT.LICENSE
+
+}
+
+# vim:set ts=2 sw=2 et: