blob: 01f788368934ac31965d536ff4c18a96deeecbd4 (
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
|
pkgname=headmaster-git
pkgver=0.28.r15.g96c3387
pkgrel=2
pkgdesc='translate c header files to another language'
url='https://github.com/ytomino/headmaster'
arch=('x86_64')
license=('BSD')
# XXX -jN where N > 1 causes race condition failures
options=('!makeflags')
depends=('mpfr')
makedepends=('git' 'ocamlbuild' 'python-docutils')
provides=('headmaster')
conflicts=('headmaster')
source=('git+https://github.com/ytomino/headmaster'
'git+https://github.com/ytomino/gmp-ocaml'
'git+https://github.com/ytomino/unicode-ocaml')
sha256sums=('SKIP' 'SKIP' 'SKIP')
pkgver() {
cd headmaster
git describe --long --tags | sed -r 's/^v//; s/([^-]*-g)/r\1/; s/-/./g'
}
prepare() {
cd headmaster
git submodule init
git config submodule.lib/gmp-ocaml.url "$srcdir"/gmp-ocaml
git config submodule.lib/unicode-ocaml.url "$srcdir"/unicode-ocaml
git submodule update lib/gmp-ocaml lib/unicode-ocaml
}
build() {
cd headmaster/main
make
}
package() {
cd headmaster/main
make BINDIR="$pkgdir"/usr/bin MANDIR="$pkgdir"/usr/share/man install
install -Dm0644 "$srcdir"/headmaster/LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}
|