summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDāvis2015-10-18 21:33:40 +0300
committerDāvis2015-10-18 21:33:40 +0300
commitc43cb3ab8c61872a7bbba2e98606a215ea4215f5 (patch)
treec3b9fa4b0b819653d04b8d0162d73464d9424a37 /PKGBUILD
downloadaur-qt5-script-git.tar.gz
Release qt5-script-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a98e7ff3c77
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Dāvis Mosāns <davispuh at gmail dot com>
+
+_pkgname=qt5-script
+pkgname=$_pkgname-git
+pkgver=v5.6.0.alpha1.r3.g0967458
+pkgrel=1
+pkgdesc='Classes for making Qt applications scriptable. Provided for Qt 4.x compatibility'
+arch=('i686' 'x86_64')
+url='https://code.qt.io/cgit/qt/qtscript.git'
+license=('GPL3' 'LGPL')
+depends=("qt5-base")
+makedepends=('git')
+provides=("$_pkgname")
+conflicts=("$_pkgname")
+source=("$_pkgname::git+https://code.qt.io/qt/qtscript.git#branch=dev")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "$srcdir"
+ mkdir -p build
+}
+
+build() {
+ cd "$srcdir/build"
+
+ qmake "$srcdir/$_pkgname"
+ make
+}
+
+package() {
+ cd "$srcdir/build"
+
+ make INSTALL_ROOT="$pkgdir" install
+
+ install -D -m644 $srcdir/$_pkgname/LGPL_EXCEPTION.txt "${pkgdir}"/usr/share/licenses/"${pkgname}"/LGPL_EXCEPTION.txt
+}