blob: 5d85d2a1dca3cc51799f8638e7cc70b156c77a4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Contributor: Anton Kudelin <kudelin at protonmail dot com>
# Former Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
# Maintainer: Ash <xash at riseup d0t net>
pkgname=cpdf-git
pkgver=2.7.1.r91.g6df2ff7
pkgrel=1
pkgdesc="A command line toolkit for Portable Document Format"
arch=('x86_64')
license=('custom')
url="https://github.com/johnwhitington/cpdf-source"
depends=('glibc')
makedepends=('ocaml' 'ocaml-findlib' 'camlpdf-git' 'git')
conflicts=("cpdf-bin" "cpdf")
source=("${pkgname%-git}::git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd ${pkgname%-git}
git describe --tags | sed 's/-/.r/' | tr - .| cut -c2-
}
build() {
cd ${pkgname%-git}
make -j1
}
package() {
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.md -t "$pkgdir"/usr/share/licenses/$pkgname
}
|