git » grantlee.git » commit 7b229f7

Rename grantlee-qt5 to grantlee

author Antonio Rojas
2016-08-30 20:31:54 UTC
committer Antonio Rojas
2016-08-30 20:31:54 UTC
parent 04f1a070f653b43b62ab0ea13a8c32247cb3aa83

Rename grantlee-qt5 to grantlee

PKGBUILD +36 -0

diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..907173c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+# Maintainer: Antonio Rojas <arojas@archlinux.org>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+
+pkgname=grantlee
+pkgver=5.1.0
+pkgrel=1
+pkgdesc="A string template engine based on the Django template system and written in Qt5"
+arch=('i686' 'x86_64')
+url="https://www.gitorious.org/grantlee/pages/Home"
+license=('LGPL3')
+depends=('qt5-script')
+makedepends=('cmake' 'doxygen')
+conflicts=('grantlee-qt5')
+provides=('grantlee-qt5')
+replaces=('grantlee-qt5')
+source=("http://downloads.grantlee.org/grantlee-$pkgver.tar.gz")
+md5sums=('57989ae9f7c113e682ef1713a6f1e92a')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake ../$pkgname-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DBUILD_TESTS=OFF
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="$pkgdir" install
+}