aboutsummaryrefslogtreecommitdiffstats
path: root/main/opensp/APKBUILD
blob: aaddb74dbc2556a551d5ab598f04a324d9f91971 (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
50
51
52
53
54
55
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=opensp
_realname=OpenSP
pkgver=1.5.2
pkgrel=0
pkgdesc="Implementation of the DSSSL style language"
url="http://openjade.sourceforge.net"
arch="all"
license="custom"
depends=""
depends_dev=""
makedepends="$depends_dev xmlto"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://prdownloads.sourceforge.net/openjade/$_realname-$pkgver.tar.gz
	opensp-1.5-install.patch"

_builddir="$srcdir"/$_realname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static \
		--enable-shared \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 "$_builddir"/COPYING \
		"$pkgdir"/usr/share/licenses/$pkgname/COPYING || return 1
}

sha512sums="a7dcc246ba7f58969ecd6d107c7b82dede811e65f375b7aa3e683621f2c6ff3e7dccefdd79098fcadad6cca8bb94c2933c63f4701be2c002f9a56f1bbe6b047e  OpenSP-1.5.2.tar.gz
6d4cddb3c98313643ef7ab57ce154dd8a188b7ea8edc608a62ff25e4f995ab4167be94e40c2a62ae568e22e1ada4bd9bf0c9687e4dfa43dafde4d87e8b73fdf8  opensp-1.5-install.patch"