diff options
author | XZS | 2015-08-18 21:00:01 +0200 |
---|---|---|
committer | XZS | 2015-08-18 21:01:11 +0200 |
commit | f645cf19496459039e6448eae0b0b455af7b0a56 (patch) | |
tree | 3a51f4d1956a8d6235e22fc2e2867e0950782d59 /PKGBUILD | |
parent | e1a29e367533444cfdf73a451627b5e1bb33b8f0 (diff) | |
download | aur-f645cf19496459039e6448eae0b0b455af7b0a56.tar.gz |
utilize standardized git templates
They are to be found in the AUR package git-makepkg-template-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 13 insertions, 12 deletions
@@ -3,30 +3,31 @@ # Contributor: Rémy Oudompheng <remy@archlinux.org> # Contributor: Firmicus <francois . archlinux . org> -_pkgname=texlive-localmanager -pkgname=${_pkgname}-git -pkgver=v0.4.5.r3.g8c9f9e4 +pkgname=texlive-localmanager-git +pkgver=0.4.5.r3.g8c9f9e4 pkgrel=1 pkgdesc="A shell and command-line utility to manage TeXLive on Arch Linux" arch=('any') url="http://wiki.archlinux.org/index.php?title=TeXLive#TeXLive_Local_Manager" license=('GPL') depends=('texlive-core>=2011' 'perl-libwww' 'perl-term-shellui' 'perl-term-readline-gnu' 'perl-list-moreutils' 'perl-http-message') -conflicts=("${_pkgname}") -replaces=("${_pkgname}") -provides=("${_pkgname}=${pkgver}") -makedepends=('git') -source=("$_pkgname::git://projects.archlinux.org/users/remy/${_pkgname}.git") -md5sums=('SKIP') install='tllocalmgr.install' +_giturl="git://projects.archlinux.org/users/remy/${pkgname%-git}.git" +makedepends+=('git') +source+=("${_gitname:=${pkgname%-git}}::${_giturl:-git+$url}") +md5sums+=('SKIP') +provides+=($_gitname) +conflicts+=($_gitname) pkgver() { - cd $srcdir/$_pkgname - git describe --long --tags | sed -r 's/^foo-//;s/([^-]*-g)/r\1/;s/-/./g' + cd ${_gitname:-$pkgname} + git describe --long --tags 2>/dev/null | sed 's/[^[:digit:]]*\(.\+\)-\([[:digit:]]\+\)-g\([[:xdigit:]]\{7\}\)/\1.r\2.g\3/;t;q1' + [ ${PIPESTATUS[0]} -ne 0 ] && \ +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } package() { - cd $srcdir/$_pkgname + cd "$_gitname" install -d $pkgdir/usr/bin install -d $pkgdir/var/lib/texmf/arch/tlpkg/TeXLive install -m755 tllocalmgr $pkgdir/usr/bin/ |