summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorVladimír Vondruš2015-06-27 19:58:14 +0200
committerVladimír Vondruš2015-06-27 19:58:14 +0200
commit426faaaa0ecada3db89b0ad7ffc6993a69b85edb (patch)
tree4e0533db6f132c96f520fdf1ea1a7642b7348718 /PKGBUILD
downloadaur-426faaaa0ecada3db89b0ad7ffc6993a69b85edb.tar.gz
Package import.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..7116846665a8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Author: mosra <mosra@centrum.cz>
+pkgname=corrade-git
+pkgver=snapshot.2015.05.r25.g94b3314
+pkgrel=1
+pkgdesc="C++11/C++14 multiplatform utility library (Git version)"
+arch=('i686' 'x86_64')
+url="http://mosra.cz/blog/corrade.php"
+license=('MIT')
+makedepends=('cmake' 'git')
+provides=('corrade')
+conflicts=('corrade')
+source=("git+git://github.com/mosra/corrade.git")
+sha1sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ mkdir -p "$srcdir/build"
+ cd "$srcdir/build"
+
+ cmake "$srcdir/${pkgname%-git}" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/build"
+ make DESTDIR="$pkgdir/" install
+}