summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD46
2 files changed, 32 insertions, 27 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 48400f35c65..a0cc1ed8074 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,17 @@
-# Generated by mksrcinfo v8
-# Thu Jun 16 20:49:29 UTC 2016
pkgbase = sdl2pp
pkgdesc = SDL2 wrapper for C++11
- pkgver = 0.12.0
+ pkgver = 0.16.0
pkgrel = 1
url = https://github.com/libSDL2pp/libSDL2pp
- arch = x86_64
- arch = i686
+ arch = any
license = zlib
makedepends = cmake
- makedepends = git
- makedepends = ninja
depends = sdl2
depends = sdl2_image
depends = sdl2_ttf
depends = sdl2_mixer
- source = git://github.com/libSDL2pp/libSDL2pp#tag=0.12.0
- md5sums = SKIP
+ source = sdl2pp-0.16.0.tar.gz::https://github.com/libSDL2pp/libSDL2pp/archive/0.16.0.tar.gz
+ md5sums = f5a1f41982421c0e0386960c5aff3d7a
pkgname = sdl2pp
diff --git a/PKGBUILD b/PKGBUILD
index dc4d3a91d73..66d1cd8d6cc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,39 @@
+# Maintainer: tocic <tocic at protonmail dot ch>
+# Contributor: Alexander F Rødseth <xyproto@archlinux.org>
+
pkgname=sdl2pp
-pkgver=0.12.0
+_pkgname=libSDL2pp
+pkgver=0.16.0
pkgrel=1
-pkgdesc='SDL2 wrapper for C++11'
-arch=('x86_64' 'i686')
+pkgdesc="SDL2 wrapper for C++11"
+arch=('any')
url="https://github.com/libSDL2pp/libSDL2pp"
license=('zlib')
depends=('sdl2' 'sdl2_image' 'sdl2_ttf' 'sdl2_mixer')
-makedepends=('cmake' 'git' 'ninja')
-source=("git://github.com/libSDL2pp/libSDL2pp#tag=$pkgver")
-md5sums=('SKIP')
+makedepends=('cmake')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/$_pkgname/$_pkgname/archive/$pkgver.tar.gz")
+md5sums=('f5a1f41982421c0e0386960c5aff3d7a')
build() {
- mkdir -p build
- cd build
- cmake \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_CXX_FLAGS=-w \
- -GNinja \
- "$srcdir/libSDL2pp"
- ninja
+ cd "$srcdir/$_pkgname-$pkgver"
+
+ cmake -DCMAKE_INSTALL_PREFIX=/usr . \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DSDL2PP_WITH_EXAMPLES=false \
+ -DSDL2PP_WITH_TESTS=false \
+ -DSDL2PP_ENABLE_LIVE_TESTS=false
+
+ make
}
-package() {
- DESTDIR="$pkgdir" ninja -C build install
+prepare() {
+ cd "$srcdir/$_pkgname-$pkgver"
}
-# vim:set ts=2 sw=2 et:
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir/" install
+
+ install -Dm644 ./COPYING.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}