summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDāvis2015-10-18 21:16:29 +0300
committerDāvis2015-10-18 21:16:29 +0300
commit51965896e652de1cf22a5f074c081d70a4f76c47 (patch)
tree2b6e16a89e52c1742062967d38658eda7611846b /PKGBUILD
downloadaur-qt5-x11extras-git.tar.gz
Release qt5-x11extras-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..9427b99c650
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Dāvis Mosāns <davispuh at gmail dot com>
+
+_pkgname=qt5-x11extras
+pkgname=$_pkgname-git
+pkgver=v5.5.0.r2.g85654ad
+pkgrel=1
+pkgdesc='Provides platform-specific APIs for X11'
+arch=('i686' 'x86_64')
+url='https://code.qt.io/cgit/qt/qtx11extras.git'
+license=('GPL3' 'LGPL')
+depends=('qt5-base-git')
+makedepends=('git')
+provides=("$_pkgname")
+conflicts=("$_pkgname")
+source=("$_pkgname::git+https://code.qt.io/qt/qtx11extras.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
+}