aboutsummaryrefslogtreecommitdiffstats
path: root/testing/opensp
diff options
context:
space:
mode:
Diffstat (limited to 'testing/opensp')
-rw-r--r--testing/opensp/APKBUILD30
1 files changed, 18 insertions, 12 deletions
diff --git a/testing/opensp/APKBUILD b/testing/opensp/APKBUILD
index 74060caa99..ab05fe2120 100644
--- a/testing/opensp/APKBUILD
+++ b/testing/opensp/APKBUILD
@@ -1,4 +1,6 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer:
pkgname=opensp
_realname=OpenSP
pkgver=1.5.1
@@ -6,23 +8,21 @@ pkgrel=0
pkgdesc="Implementation of the DSSSL style language"
url="http://openjade.sourceforge.net"
arch="all"
-license="Custom"
-depends=
-depends_dev=
+license="custom"
+depends=""
+depends_dev=""
makedepends="$depends_dev"
-install=
+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
- "
-
+ 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;;
@@ -32,17 +32,23 @@ prepare() {
build() {
cd "$_builddir"
- ./configure --prefix=/usr \
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --infodir=/usr/share/info
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
make || return 1
}
package() {
cd "$_builddir"
- make DESTDIR="$pkgdir" install
-
+ 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