summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander F Rødseth2016-06-16 22:49:36 +0200
committerAlexander F Rødseth2016-06-16 22:49:36 +0200
commit5050fb836aca55d1996280af0f2c653a43278085 (patch)
treedfaf57383789d891a6f254332cde56052b320b40
parent29f0dcce014a2fec47ca4def82ebf2fe89e9b879 (diff)
downloadaur-5050fb836aca55d1996280af0f2c653a43278085.tar.gz
Initial commit
-rw-r--r--.SRCINFO19
-rw-r--r--[-rwxr-xr-x]PKGBUILD41
2 files changed, 28 insertions, 32 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e484219850e..48400f35c65 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,23 +1,22 @@
-# Generated by makepkg 4.2.1
-# Sun Jan 3 16:55:16 UTC 2016
-pkgbase = sdl2pp-git
+# Generated by mksrcinfo v8
+# Thu Jun 16 20:49:29 UTC 2016
+pkgbase = sdl2pp
pkgdesc = SDL2 wrapper for C++11
- pkgver = 0.11.0.r15.560.g05325e1
+ pkgver = 0.12.0
pkgrel = 1
- url = https://github.com/AMDmi3/libSDL2pp
- arch = i686
+ url = https://github.com/libSDL2pp/libSDL2pp
arch = x86_64
+ arch = i686
license = zlib
makedepends = cmake
makedepends = git
+ makedepends = ninja
depends = sdl2
depends = sdl2_image
depends = sdl2_ttf
depends = sdl2_mixer
- provides = sdl2pp
- conflicts = sdl2pp
- source = git+https://github.com/libSDL2pp/libSDL2pp.git
+ source = git://github.com/libSDL2pp/libSDL2pp#tag=0.12.0
md5sums = SKIP
-pkgname = sdl2pp-git
+pkgname = sdl2pp
diff --git a/PKGBUILD b/PKGBUILD
index c847d062e77..dc4d3a91d73 100755..100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,32 +1,29 @@
-pkgname=sdl2pp-git
-_pkgname=sdl2pp
-__pkgbuildname=libSDL2pp
-pkgver=0.11.0.r15.560.g05325e1
+pkgname=sdl2pp
+pkgver=0.12.0
pkgrel=1
-pkgdesc="SDL2 wrapper for C++11"
-arch=('i686' 'x86_64')
-url="https://github.com/AMDmi3/libSDL2pp"
+pkgdesc='SDL2 wrapper for C++11'
+arch=('x86_64' 'i686')
+url="https://github.com/libSDL2pp/libSDL2pp"
license=('zlib')
depends=('sdl2' 'sdl2_image' 'sdl2_ttf' 'sdl2_mixer')
-makedepends=('cmake' 'git')
-provides=(${_pkgname})
-conflicts=(${_pkgname})
-source=("git+https://github.com/libSDL2pp/libSDL2pp.git")
+makedepends=('cmake' 'git' 'ninja')
+source=("git://github.com/libSDL2pp/libSDL2pp#tag=$pkgver")
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
+ mkdir -p build
+ cd build
+ cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_CXX_FLAGS=-w \
+ -GNinja \
+ "$srcdir/libSDL2pp"
+ ninja
}
package() {
- cd "${srcdir}/${__pkgbuildname}"
- make DESTDIR="${pkgdir}" install
+ DESTDIR="$pkgdir" ninja -C build install
}
+
+# vim:set ts=2 sw=2 et: