diff options
author | haawda | 2019-03-12 20:28:11 +0100 |
---|---|---|
committer | haawda | 2019-03-12 20:28:11 +0100 |
commit | a20baca8e6339fdf2831af51c6606008b3aa0f83 (patch) | |
tree | 1b0a778d62f19d5805e9dc9e1a86a625173a97b0 /PKGBUILD | |
parent | 9e6d23aad4923cd325a04b77b718a8a906b28850 (diff) | |
download | aur-emacs-s-git.tar.gz |
adopt and change pkgver function
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,10 +1,11 @@ -# Maintainer: sballert <sballert@posteo.de> +# Contributor: sballert <sballert@posteo.de> +# Maintainer: Stefan Husmann <stefan-husmann@t-online.de> _gituser="magnars" _gitrepo="s.el" pkgname=emacs-s-git -pkgver=r258.03410e6 +pkgver=1.12.0r10.g03410e6 pkgrel=1 pkgdesc="The long lost Emacs string manipulation library." url="https://github.com/${_gituser}/${_gitrepo}" @@ -19,7 +20,7 @@ sha256sums=('SKIP') pkgver() { cd "$_gitrepo" - printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD) + git describe --tags --long | sed 's+-+r+'|tr - . } build() { @@ -29,6 +30,6 @@ build() { package() { cd "$_gitrepo" - install -d "$pkgdir"/usr/share/emacs/site-lisp/s/ - install -m644 *.el{c,} "$pkgdir"/usr/share/emacs/site-lisp/s/ + install -d "$pkgdir"/usr/share/emacs/site-lisp/ + install -m644 *.el{c,} "$pkgdir"/usr/share/emacs/site-lisp/ } |