diff options
author | David Runge | 2017-10-24 21:38:12 +0200 |
---|---|---|
committer | David Runge | 2017-10-24 21:38:12 +0200 |
commit | f091bec47da2453b5219d8122373dc43c9ee332a (patch) | |
tree | 2732aa12412387d98c8e49c8b2173e337b68aa52 | |
parent | 788f2975802aebb081a34ff8dd7159e4931137ee (diff) | |
download | aur-f091bec47da2453b5219d8122373dc43c9ee332a.tar.gz |
PKGBUILD: Removing empty fields. Switching to https for cloning. Improving pkgver(). Improving usage of install.
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 12 insertions, 27 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Wed Oct 18 14:20:30 UTC 2017 +# Tue Oct 24 19:37:52 UTC 2017 pkgbase = crypted-backups-git pkgdesc = Backup scripts using systemd timer/service units and gpg encryption pkgver = 0.1.r11.gf07a4a2 - pkgrel = 2 + pkgrel = 3 url = https://sleepmap.de/software/crypted-backups arch = any license = GPL3 @@ -12,7 +12,7 @@ pkgbase = crypted-backups-git provides = crypted-backups conflicts = crypted-backups backup = etc/crypted-backups - source = crypted-backups::git://sleepmap.de/software/crypted-backups.git + source = git+https://git.sleepmap.de/software/crypted-backups.git sha512sums = SKIP pkgname = crypted-backups-git @@ -2,47 +2,32 @@ pkgname=crypted-backups-git pkgver=0.1.r11.gf07a4a2 _pkg=crypted-backups -pkgrel=2 +pkgrel=3 pkgdesc="Backup scripts using systemd timer/service units and gpg encryption" arch=('any') url="https://sleepmap.de/software/crypted-backups" license=('GPL3') -groups=() depends=('xz') makedepends=('git') provides=('crypted-backups') conflicts=('crypted-backups') -replaces=() backup=('etc/crypted-backups') -options=() -install= -source=("${_pkg}::git://sleepmap.de/software/${_pkg}.git") -noextract=() +source=("git+https://git.sleepmap.de/software/${_pkg}.git") sha512sums=('SKIP') -build() { - cd "$srcdir" -} - pkgver() { cd "$srcdir/$_pkg" - ( set -o pipefail - git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" - ) + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } package() { cd "$srcdir/$_pkg" - install -d ${pkgdir}/usr/lib/systemd/scripts/ - install -Dm 755 scripts/* ${pkgdir}/usr/lib/systemd/scripts/ - install -Dm 644 README.rst ${pkgdir}/usr/share/doc/${_pkg}/README.rst - install -d ${pkgdir}/usr/lib/systemd/system/ - install -Dm 644 system/* ${pkgdir}/usr/lib/systemd/system/ - install -d ${pkgdir}/usr/lib/systemd/user/ - install -Dm 644 user/* ${pkgdir}/usr/lib/systemd/user/ - install -Dm 644 config/system/${_pkg} ${pkgdir}/etc/${_pkg} - install -Dm 644 config/user/${_pkg} ${pkgdir}/etc/skel/".${_pkg}" + install -t "${pkgdir}/usr/lib/systemd/scripts/" -Dm 755 scripts/* + install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${_pkg}/README.rst" + install -t "${pkgdir}/usr/lib/systemd/system/" -Dm 644 system/* + install -t "${pkgdir}/usr/lib/systemd/user/" -Dm 644 user/* + install -Dm 644 "config/system/${_pkg}" "${pkgdir}/etc/${_pkg}" + install -Dm 644 "config/user/${_pkg}" "${pkgdir}/etc/skel/.${_pkg}" } # vim:set ts=2 sw=2 et: |