blob: feb434f1e7aceba8b14eaa2858e750446267013c (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=halibut-git
pkgver=1.2.r39.gce45faf
pkgrel=1
pkgdesc="free document preparation system"
url="http://www.chiark.greenend.org.uk/~sgtatham/halibut/"
arch=('i686' 'x86_64')
license=('custom:MIT')
depends=('glibc')
makedepends=('git' 'cmake')
conflicts=('halibut')
provides=('halibut')
source=(git+https://git.tartarus.org/simon/halibut.git git+https://git.tartarus.org/simon/charset.git)
sha256sums=('SKIP' 'SKIP')
pkgver() {
cd ${pkgname%-git}
git describe --tags | sed 's+-+.r+'|tr - .
}
prepare() {
cd ${pkgname%-git}
git submodule init
git config submodule.charset.url "$srcdir"/charset
git submodule update
}
build() {
cd ${pkgname%-git}
cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr
make
}
package() {
cd ${pkgname%-git}
install -Dm644 LICENCE "$pkgdir"/usr/share/licenses/${pkgname}/LICENCE
install -Dm755 ${pkgname%-git} "$pkgdir"/usr/bin/${pkgname%-git}
install -Dm644 doc/${pkgname%-git}.1 "$pkgdir"/usr/share/man/man1/${pkgname%-git}.1
cd doc/manual
for _i in ${pkgname%-git}.info*
do
install -Dm644 $_i "$pkgdir"/usr/share/info/$_i
done
for _i in ${pkgname%-git}{.ps,.pdf,.txt}
do
install -Dm644 $_i "$pkgdir"/usr/share/doc/${pkgname%-git}/$_i
done
}
|