aboutsummaryrefslogtreecommitdiffstats
path: root/main/opensp/APKBUILD
blob: ab05fe21206f105cc421f3e9ddcb8b31d2562bd0 (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
56
57
58
59
60
61
62
63
64
65
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=opensp
_realname=OpenSP
pkgver=1.5.1
pkgrel=0
pkgdesc="Implementation of the DSSSL style language"
url="http://openjade.sourceforge.net"
arch="all"
license="custom"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://prdownloads.sourceforge.net/openjade/$_realname-$pkgver.tar.gz
	opensp-1.5-wideCharMax-fix.patch
	opensp-1.5-InternalInputSource-fix.patch
	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 \
		|| 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
}

md5sums="f46fe0a04b76a4454ec27b7fcc84ec54  OpenSP-1.5.1.tar.gz
dd5e3d89995dea240c36ce0bad1bddf6  opensp-1.5-wideCharMax-fix.patch
a8b5378b8501a50f78366bf819176435  opensp-1.5-InternalInputSource-fix.patch
cfa9bf5850bafea0c2d2ac01a615b929  opensp-1.5-install.patch"
sha256sums="3f0649840dc3d6ec432e3c8d933b178208f3feccb6db111d22c8995ad07c736b  OpenSP-1.5.1.tar.gz
8f25c56dc58ba6293fe5ef4c860eacfea122d945aa7ecbc5b1ffe54fab62a6c8  opensp-1.5-wideCharMax-fix.patch
3a1f328c94b49eae2d4c3051b6d2550092d1ebbf3c1ce4399fe97f5adcd7abb1  opensp-1.5-InternalInputSource-fix.patch
32570cedb02dbaa8fc544cb3706f73c4065b19dcb1dd41fdadc5e7af1fb080fd  opensp-1.5-install.patch"
sha512sums="c89c256d384001d73669181e0894e7ca083bedc3f8bfd77eb7c2d1e9fc5a7c91a33a0bc5ca50491e3a644bb1f58224b027d996e111e5d82d518f5d9f41c8546a  OpenSP-1.5.1.tar.gz
7634358bd5bd2a567a6d449e904e9f95045a83dc45da378adbb551677b25e46c2525484d3c64c31a735acfbacf7af88b348791192ed29610a8166dc69cba962a  opensp-1.5-wideCharMax-fix.patch
4da57ece0246d66bb5d5b71df6f7b01699012a0cc52f6a1cb26af9689277ac9e393b2e3c418ad211e90eba92fe966e2f19d71c611345a69268296be9cfc5e23c  opensp-1.5-InternalInputSource-fix.patch
6d4cddb3c98313643ef7ab57ce154dd8a188b7ea8edc608a62ff25e4f995ab4167be94e40c2a62ae568e22e1ada4bd9bf0c9687e4dfa43dafde4d87e8b73fdf8  opensp-1.5-install.patch"