summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Jaeger2016-08-23 14:54:29 -0500
committerPhilipp Jaeger2016-08-23 14:54:29 -0500
commit69ced31ce1ff087cc517f02fa3fe429241f25122 (patch)
tree0e050f78ff22a592b34e8b2a6be4a874579086f0
parentbb368865ac5fc3a87f783d97b3a09f5ef25549b0 (diff)
downloadaur-69ced31ce1ff087cc517f02fa3fe429241f25122.tar.gz
switched source to git repository
-rw-r--r--PKGBUILD32
1 files changed, 24 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8e976c6fd0b..ece9eb27f66 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# Contributor: Klaus Denker <kldenker@unix-ag.uni-kl.de>
pkgname=glpresenter
pkgbase=glpresenter
-pkgver=0.3.3 # note: if the pkgver had been '0.99-10' then use an underscore. like '0.99_10'
+pkgver=0.3.4 # note: if the pkgver had been '0.99-10' then use an underscore. like '0.99_10'
pkgrel=2
pkgdesc="A dual-screen OpenGL PDF presentation software"
arch=('any')
@@ -11,18 +11,34 @@ url="http://www.unix-ag.uni-kl.de/~kldenker/gl_presenter/"
license=('GPL')
groups=()
provides=()
+makedepends=('git')
depends=('qt4' 'poppler-qt4' 'glu')
-source=(http://www.unix-ag.uni-kl.de/~kldenker/gl_presenter/download/source/gl_presenter-$pkgver.tar.bz2)
-md5sums=('738065023c500584346d1351a02c6f90')
+#source=(http://www.unix-ag.uni-kl.de/~kldenker/gl_presenter/download/source/gl_presenter-$pkgver.tar.bz2)
+#md5sums=('738065023c500584346d1351a02c6f90')
+_gitroot="https://github.com/KLAU542/gl-presenter.git"
+_gitname="gl-presenter"
-build() {
- cd $srcdir/gl_presenter-$pkgver
+build()
+{
+ cd ${srcdir}/
+ msg "Connecting to the GIT server...."
+ if [[ -d ${srcdir}/${_gitname} ]] ; then
+ cd ${_gitname}
+ git pull origin
+ msg "The local files are updated..."
+ else
+ git clone ${_gitroot}
+ cd ${_gitname}
+ fi
+ msg "GIT checkout done."
+ msg "Starting make for: ${pkgname}"
qmake-qt4 -Wnone
make
}
package() {
- cd $srcdir/gl_presenter-$pkgver
+ cd $srcdir/${_gitname}
mkdir -p $pkgdir/usr/bin
- mv gl_presenter $pkgdir/usr/bin/.
- ln $pkgdir/usr/bin/gl_presenter $pkgdir/usr/bin/glpresenter
+ mv gl-presenter $pkgdir/usr/bin/.
+ ln $pkgdir/usr/bin/gl-presenter $pkgdir/usr/bin/glpresenter
+ ln $pkgdir/usr/bin/gl-presenter $pkgdir/usr/bin/gl_presenter
}