summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Mildenberger2015-07-23 20:16:59 +0200
committerPhilipp Mildenberger2015-07-23 20:16:59 +0200
commitc924c597222782dac062cea0b70c2fbb5249ec3e (patch)
tree4bff372996a0a5beba0486afd340b5b0949cead1
downloadaur-c924c597222782dac062cea0b70c2fbb5249ec3e.tar.gz
Initial import
-rw-r--r--.SRCINFO22
-rwxr-xr-xPKGBUILD32
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3aacc2d8a2c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+# Generated by makepkg 4.2.1
+# Thu Jul 23 18:12:47 UTC 2015
+pkgbase = sdl2pp-git
+ pkgdesc = SDL2 wrapper for C++11
+ pkgver = 0.8.0.r14.425.g6752baa
+ pkgrel = 1
+ url = https://github.com/AMDmi3/libSDL2pp
+ arch = i686
+ arch = x86_64
+ license = zlib
+ makedepends = cmake
+ makedepends = git
+ depends = sdl2
+ depends = sdl2_image
+ depends = sdl2_ttf
+ provides = sdl2pp
+ conflicts = sdl2pp
+ source = git+https://github.com/AMDmi3/libSDL2pp.git
+ md5sums = SKIP
+
+pkgname = sdl2pp-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..79cff290084
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+pkgname=sdl2pp-git
+_pkgname=sdl2pp
+__pkgbuildname=libSDL2pp
+pkgver=0.8.0.r14.425.g6752baa
+pkgrel=1
+pkgdesc="SDL2 wrapper for C++11"
+arch=('i686' 'x86_64')
+url="https://github.com/AMDmi3/libSDL2pp"
+license=('zlib')
+depends=('sdl2' 'sdl2_image' 'sdl2_ttf')
+makedepends=('cmake' 'git')
+provides=(${_pkgname})
+conflicts=(${_pkgname})
+source=("git+https://github.com/AMDmi3/libSDL2pp.git")
+md5sums=('SKIP')
+
+pkgver() {
+cd "${__pkgbuildname}"
+git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | sed "s/g/$(git rev-list --count HEAD).g/g"
+}
+
+build() {
+ cd "${srcdir}/${__pkgbuildname}"
+ cmake -DCMAKE_BUILD_TYPE=RELEASE \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${__pkgbuildname}"
+ make DESTDIR="${pkgdir}" install
+}