diff options
author | Rasmus Thomsen <oss@cogitri.dev> | 2019-05-22 07:22:49 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-06-05 17:48:01 +0000 |
commit | 368038c3871f94ea2b03227cb1213a6ec924abf0 (patch) | |
tree | 3e3302f2d0cc09ac494a2bf7d64cb1d152da3ed5 /community/libieee1284 | |
parent | 815d46044815e090806f9f0c729ede697013584b (diff) | |
download | aports-368038c3871f94ea2b03227cb1213a6ec924abf0.tar.bz2 aports-368038c3871f94ea2b03227cb1213a6ec924abf0.tar.xz |
community/libieee1284: move from testing
It's required for sane
Diffstat (limited to 'community/libieee1284')
-rw-r--r-- | community/libieee1284/APKBUILD | 55 | ||||
-rw-r--r-- | community/libieee1284/include.patch | 11 |
2 files changed, 66 insertions, 0 deletions
diff --git a/community/libieee1284/APKBUILD b/community/libieee1284/APKBUILD new file mode 100644 index 0000000000..d3cc619ad3 --- /dev/null +++ b/community/libieee1284/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: Valery Kartel <valery.kartel@gmail.com> +# Maintainer: Valery Kartel <valery.kartel@gmail.com> +pkgname=libieee1284 +pkgver=0.2.11 +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-or-later" +depends_dev="py-$pkgname" +makedepends="file python2-dev" +subpackages="$pkgname-static $pkgname-dev $pkgname-doc py-$pkgname:_py" +source="https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 + include.patch" + +prepare() { + default_prepare + update_config_guess +} + +build() { + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man + make +} + +package() { + make DESTDIR="$pkgdir" install +} + +dev() { + default_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" + pkgdesc="$pkgdesc (python2 bindings)" + + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/python2* "$subpkgdir"/usr/lib +} + +sha512sums="06cc3049ce15613d34e39dc71bc572843c61ab64077c29ef9a6257edb0849c98565ff612a4cf787bc9642a39f1c89b7c47a20fb27f2318105be82aad8d472bb9 libieee1284-0.2.11.tar.bz2 +dccf1a78c02c6c1ea25eb3e054327298aac11972a32fafaa2180db31441f69cc1528bcb73127b7721776e946edee2344273d77443146bd707535bad148209453 include.patch" diff --git a/community/libieee1284/include.patch b/community/libieee1284/include.patch new file mode 100644 index 0000000000..ccacfcc8a9 --- /dev/null +++ b/community/libieee1284/include.patch @@ -0,0 +1,11 @@ +--- a/src/access_io.c ++++ b/src/access_io.c +@@ -50,7 +50,7 @@ + #ifdef HAVE_LINUX + + #ifdef HAVE_SYS_IO_H +-#include <sys/io.h> ++#include "io.h" + #endif + + #elif defined(HAVE_SOLARIS) |