summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattéo Delabre2018-11-11 00:22:49 +0100
committerMattéo Delabre2018-11-11 00:24:27 +0100
commit17431c36392ee2bba83e3fcfe41ba3fa75c119fd (patch)
tree9f9718b2d07d3d3f998f0bab717940dcf70732d4
downloadaur-17431c36392ee2bba83e3fcfe41ba3fa75c119fd.tar.gz
Version 0.4.0
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD36
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e873a4698aa
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = sfgui
+ pkgdesc = Graphical user interface (GUI) library for programs that use SFML for rendering
+ pkgver = 0.4.0
+ pkgrel = 1
+ url = https://github.com/TankOs/SFGUI
+ arch = x86_64
+ license = ZLIB
+ makedepends = cmake
+ depends = sfml
+ source = https://github.com/TankOs/SFGUI/archive/0.4.0.tar.gz
+ sha256sums = 2dfe95a2ecfed12ab2d4c591fbf6b10d16bbdedec2530545b4c2140ab01c05dc
+
+pkgname = sfgui
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1ee9db56dd0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Mattéo Delabre <bonjour@matteodelabre.me>
+
+pkgname=sfgui
+pkgver=0.4.0
+pkgrel=1
+pkgdesc="Graphical user interface (GUI) library for programs that use SFML for rendering"
+arch=(x86_64)
+url="https://github.com/TankOs/SFGUI"
+license=("ZLIB")
+makedepends=("cmake")
+depends=("sfml")
+source=("https://github.com/TankOs/${pkgname^^}/archive/$pkgver.tar.gz")
+sha256sums=("2dfe95a2ecfed12ab2d4c591fbf6b10d16bbdedec2530545b4c2140ab01c05dc")
+
+build() {
+ mkdir -p build
+ cd build
+
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ "../${pkgname^^}-$pkgver"
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir/" install
+
+ cd "../${pkgname^^}-$pkgver"
+ install -Dm644 LICENSE.md $pkgdir/usr/share/licenses/$pkgname/LICENSE.md
+ install -Dm644 FONT.LICENSE.md $pkgdir/usr/share/licenses/$pkgname/FONT.LICENSE.md
+
+ cmakever=$(cmake --version | head -n1 | cut -d' ' -f 3 | cut -d'.' -f1,2)
+ install -Dm644 cmake/Modules/FindSFML.cmake $pkgdir/usr/share/cmake-$cmakever/Modules/FindSFML.cmake
+ install -Dm644 cmake/Modules/FindSFGUI.cmake $pkgdir/usr/share/cmake-$cmakever/Modules/FindSFGUI.cmake
+}