aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libieee1284
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-05-05 00:57:50 -0300
committerKevin Daudt <kdaudt@alpinelinux.org>2019-05-05 16:15:17 +0000
commit71723743bf422049c9bbb28d62b786b777bfe34e (patch)
treebd1af0bade5bca1c22dba721e7cbe66df76999b9 /testing/libieee1284
parente0c4ef7624d14ddf37aef64566876304ed1b3c00 (diff)
downloadaports-71723743bf422049c9bbb28d62b786b777bfe34e.tar.bz2
aports-71723743bf422049c9bbb28d62b786b777bfe34e.tar.xz
testing/libieee1284: fix license and split -static
Closes GH-7568
Diffstat (limited to 'testing/libieee1284')
-rw-r--r--testing/libieee1284/APKBUILD19
1 files changed, 11 insertions, 8 deletions
diff --git a/testing/libieee1284/APKBUILD b/testing/libieee1284/APKBUILD
index b03d933607..d3cc619ad3 100644
--- a/testing/libieee1284/APKBUILD
+++ b/testing/libieee1284/APKBUILD
@@ -2,18 +2,16 @@
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=libieee1284
pkgver=0.2.11
-pkgrel=0
+pkgrel=1
pkgdesc="A cross-platform library for parallel port access"
url="http://cyberelk.net/tim/libieee1284"
arch="x86 x86_64"
-license="GPL-2.0"
+license="GPL-2.0-or-later"
depends_dev="py-$pkgname"
makedepends="file python2-dev"
-subpackages="$pkgname-dev $pkgname-doc py-$pkgname:_py"
+subpackages="$pkgname-static $pkgname-dev $pkgname-doc py-$pkgname:_py"
source="https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
include.patch"
-builddir="$srcdir/$pkgname-$pkgver"
-options="!check"
prepare() {
default_prepare
@@ -21,8 +19,6 @@ prepare() {
}
build() {
- cd "$builddir"
-
./configure \
--prefix=/usr \
--mandir=/usr/share/man
@@ -30,7 +26,6 @@ build() {
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
}
@@ -39,6 +34,14 @@ dev() {
mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}
+static() {
+ depends=""
+ pkgdesc="$pkgdesc (static library)"
+
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib
+}
+
_py() {
provides="py2-$pkgname"
depends="python2"