diff options
author | Otto Sabart | 2015-06-30 09:54:53 +0000 |
---|---|---|
committer | Otto Sabart | 2015-06-30 09:54:53 +0000 |
commit | e467529d11d6eb8c22ef9e4d6d0f5c7fa635b10b (patch) | |
tree | 55266bc299b8e74a126a70a845870ad5678e7b7b /PKGBUILD | |
download | aur-salarm-git.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..30def664e4c4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Sabart Otto - Seberm <seberm[at]gmail[dot].com + +pkgname=salarm-git +pkgver=20110525 +pkgrel=1 +pkgdesc="Scheduler written in C++, with General public license version 3 used." +url="http://salarm.seberm.com" +arch=('i686' 'x86_64') +license=('GPLv3') +install= +source=() +depends=('qt' 'phonon') +makedepends=('git') + +_gitname="salarm" +_gitroot="git://git.gitorious.org/$_gitname/${_gitname}.git" + + +build() { + + cd ${srcdir} + msg "Connecting to GIT ($_gitroot) ..." + + if [ -d $_gitname ]; then + cd $_gitname && git pull origin + msg "The local files of $_gitname were updated." + else + git clone $_gitroot $_gitname + fi + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + # Build + cd $srcdir/ + rm -rf build + mkdir build + cd build + + cmake -DCMAKE_INSTALL_PREFIX=/usr ../$_gitname + make || return 1 + make DESTDIR=${pkgdir} install || return 1 # Else return 1 - build failed +} + |