diff options
author | haawda | 2020-10-03 22:34:57 +0200 |
---|---|---|
committer | haawda | 2020-10-03 22:34:57 +0200 |
commit | 2cbd89281b26ea6e2fdfccb0b57d244275d9887b (patch) | |
tree | b97f037b0aa1849c289fe58f5746a85c0976fc79 /PKGBUILD | |
parent | 4f6343ba659ef2090f6c3dc6336481ef68cf45af (diff) | |
download | aur-cpdf-git.tar.gz |
adopted
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -1,8 +1,8 @@ -# Maintainer: Anton Kudelin <kudelin at protonmail dot com> +# Contributor: Anton Kudelin <kudelin at protonmail dot com> +# Maintainer: Stefan Husmann <stefan-husmann@t-online.de> -_pkgname=cpdf -pkgname=$_pkgname-git -pkgver=2.2.1.r45.g9cb5347 +pkgname=cpdf-git +pkgver=2.3.1.r52.gd51ba0d pkgrel=1 pkgdesc="A command line toolkit for Portable Document Format" arch=('x86_64') @@ -10,25 +10,25 @@ license=('custom') url="https://github.com/johnwhitington/cpdf-source" depends=('glibc') makedepends=('ocaml' 'ocaml-findlib' 'camlpdf-git' 'git') -conflicts=("$_pkgname-bin" "$_pkgname") -source=("git+$url.git") +conflicts=("cpdf-bin" "cpdf") +source=("${pkgname%-git}::git+$url.git") sha256sums=('SKIP') pkgver() { - cd $_pkgname-source - git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | cut -c 2- + cd ${pkgname%-git} + git describe --tags | sed 's/-/.r/' | tr - .| cut -c2- } build() { - cd $srcdir/$_pkgname-source + cd ${pkgname%-git} make -j1 } package() { - cd $srcdir/$_pkgname-source - install -Dpm755 $_pkgname -t $pkgdir/usr/bin - install -Dpm644 $_pkgname.1 -t $pkgdir/usr/share/man/man1 - sed -e "s:cpdfmanual.pdf:/usr/share/doc/$_pkgname/&:g" -i $pkgdir/usr/share/man/man1/$_pkgname.1 - install -Dpm644 cpdfmanual.pdf -t $pkgdir/usr/share/doc/$_pkgname - install -Dpm644 LICENSE -t $pkgdir/usr/share/licenses/$pkgname + cd ${pkgname%-git} + install -Dpm755 ${pkgname%-git} -t "$pkgdir"/usr/bin + install -Dpm644 ${pkgname%-git}.1 -t "$pkgdir"/usr/share/man/man1 + sed -e "s:cpdfmanual.pdf:/usr/share/doc/$_pkgname/&:g" -i "$pkgdir"/usr/share/man/man1/${pkgname%-git}.1 + install -Dpm644 cpdfmanual.pdf -t "$pkgdir"/usr/share/doc/${pkgname%-git} + install -Dpm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname } |