diff options
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 13 insertions, 38 deletions
@@ -1,18 +1,21 @@ +# Generated by mksrcinfo v8 +# Fri Mar 18 20:01:53 UTC 2016 pkgbase = vmtouch-systemd-git pkgdesc = Systemd support for vmtouch. - pkgver = 1.1 + pkgver = r6.196c4c7 pkgrel = 1 url = https://github.com/dracorp/vmtouch-systemd arch = any license = GPL makedepends = git - depends = bash depends = libui-sh depends = vmtouch provides = vmtouch-systemd conflicts = vmtouch-systemd backup = etc/vmtouch.conf backup = etc/default/vmtouch + source = git://github.com/dracorp/vmtouch-systemd.git + sha256sums = SKIP pkgname = vmtouch-systemd-git @@ -1,16 +1,13 @@ -# 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> +# Maintainer: dracorp aka Piotr Rogoza <piotr.r.public@gmail.com> pkgname=vmtouch-systemd-git -pkgver=1.1 +pkgver=r6.196c4c7 pkgrel=1 pkgdesc='Systemd support for vmtouch.' arch=('any') url='https://github.com/dracorp/vmtouch-systemd' license=('GPL') -groups=() -depends=(bash libui-sh vmtouch) +depends=(libui-sh vmtouch) makedepends=(git) provides=(vmtouch-systemd) conflicts=(vmtouch-systemd) @@ -18,39 +15,14 @@ backup=( etc/vmtouch.conf etc/default/vmtouch ) -_gitroot='https://github.com/dracorp/vmtouch-systemd.git' +source=('git://github.com/dracorp/vmtouch-systemd.git') +sha256sums=('SKIP') _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" + cd $_gitname + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" } -package(){ +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 - } - |