blob: 08100dd3cec0f76fb6978c6dcc052d9b632b3bc1 (
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
|
# Maintainer: Omar Roth <omarroth@hotmail.com>
pkgname=libmarpa
pkgver=8.6.2
pkgrel=2
pkgdesc="Marpa parse engine C library"
arch=('i686' 'x86_64')
makedepends=('autoconf' 'automake' 'libtool' 'make' 'perl' 'texlive-bin')
url="https://github.com/jeffreykegler/libmarpa"
license=('MIT')
source=($pkgname-$pkgver::git+https://github.com/jeffreykegler/libmarpa)
sha256sums=('SKIP')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
msg2 'Preparing distribution...'
make dists
}
build() {
cd "$srcdir/$pkgname-$pkgver/dist"
msg2 'Building...'
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--libexecdir=/usr/lib/libmarpa \
--sysconfdir=/etc \
--sharedstatedir=/usr/share/libmarpa \
--localstatedir=/var/lib/libmarpa \
--with-gnu-ld
make
}
package() {
cd "$srcdir/$pkgname-$pkgver/dist"
msg2 'Installing license...'
install -Dm 644 AUTHORS COPYING{,.LESSER} \
-t "$pkgdir/usr/share/licenses/libmarpa"
msg2 'Installing documentation...'
install -Dm 644 README{,.INSTALL} -t "$pkgdir/usr/share/doc/libmarpa"
msg2 'Installing...'
make DESTDIR="$pkgdir" install
}
|