diff options
author | Piotr Rogoża | 2015-06-14 16:00:18 +0200 |
---|---|---|
committer | Piotr Rogoża | 2015-06-14 16:00:18 +0200 |
commit | d16a3ccd0f9e3a6c4401d29186a337efcff779fc (patch) | |
tree | 2d790fe7643a52f158d79159f248d66e650f83e7 /PKGBUILD | |
download | aur-d16a3ccd0f9e3a6c4401d29186a337efcff779fc.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..66e050245d15 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,56 @@ +# vim:set ts=2 sw=2 et ft=sh tw=100: expandtab +# Maintainer: Piotr Rogoża <rogoza dot piotr at gmail dot com> +# Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com> + +pkgname=vmtouch-systemd-git +pkgver=1.1 +pkgrel=1 +pkgdesc='Systemd support for vmtouch.' +arch=('any') +url='https://github.com/dracorp/vmtouch-systemd' +license=('GPL') +groups=() +depends=(bash libui-sh vmtouch) +makedepends=(git) +provides=(vmtouch-systemd) +conflicts=(vmtouch-systemd) +backup=( +etc/vmtouch.conf +etc/default/vmtouch +) +_gitroot='https://github.com/dracorp/vmtouch-systemd.git' +_gitname='vmtouch-systemd' + +pkgver() { + if [ -d "$srcdir"/$_gitname ]; then + cd "$srcdir"/$_gitname + git describe --always | sed 's|-|.|g' + fi +} +build(){ + cd "$srcdir" + msg2 "Connecting to GIT server...." + + if [ -d ${_gitname}/.git ] ; then + cd $_gitname + git pull --depth 1 origin + msg2 "The local files are updated." + else + git clone --depth 1 $_gitroot $_gitname + cd $_gitname + fi + + msg2 "GIT checkout done or server timeout" +} +package(){ + cd "$srcdir"/$_gitname + + make DESTDIR="$pkgdir" install + +# install -Dm755 vmtouch.sh "$pkgdir"/usr/lib/systemd/scripts/vmtouch +# install -Dm644 vmtouch.service "$pkgdir"/usr/lib/systemd/system/vmtouch.service +# install -Dm644 vmtouch.default "$pkgdir"/etc/default/vmtouch +# install -Dm644 vmtouch.conf "$pkgdir"/etc/vmtouch.conf + +} + |