X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail.infogroup.kiev.ua (tera.infogroup.kiev.ua [195.144.25.26]) by lists.alpinelinux.org (Postfix) with ESMTP id 134595C45A1 for ; Mon, 12 Dec 2016 23:51:42 +0000 (GMT) Received: from ost.org.ua ([195.144.25.230] helo=alpine.ost.org.ua) by mail.infogroup.kiev.ua with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1cGaNh-0005nt-Bx for alpine-aports@lists.alpinelinux.org; Tue, 13 Dec 2016 01:51:41 +0200 From: Valery Kartel To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH] testing/libieee1284: new aport Date: Tue, 13 Dec 2016 01:51:39 +0200 Message-Id: <20161212235139.30248-1-valery.kartel@gmail.com> X-Mailer: git-send-email 2.11.0 Sender: droid@infogroup.kiev.ua X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: http://cyberelk.net/tim/libieee1284 libieee1284 is a cross-platform library for parallel port access --- testing/libieee1284/APKBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++ testing/libieee1284/io_h.patch | 11 ++++++++++ 2 files changed, 61 insertions(+) create mode 100644 testing/libieee1284/APKBUILD create mode 100644 testing/libieee1284/io_h.patch diff --git a/testing/libieee1284/APKBUILD b/testing/libieee1284/APKBUILD new file mode 100644 index 0000000000..fbd3095254 --- /dev/null +++ b/testing/libieee1284/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Valery Kartel +# Maintainer: +pkgname=libieee1284 +pkgver=0.2.11 +pkgrel=0 +pkgdesc="libieee1284 is a cross-platform library for parallel port access" +url="http://cyberelk.net/tim/libieee1284" +arch="all" +license="GPL2" +depends="" +depends_dev="" +makedepends="python-dev" +install="" +subpackages="$pkgname-dev $pkgname-doc $pkgname-test:_test py-$pkgname:_py" +source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 + io_h.patch" +builddir="$srcdir"/$pkgname-$pkgver + +build() { + cd "$builddir" + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 + make || return 1 +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +_test() { + pkgdesc="$pkgdesc (test binary)" + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/bin "$subpkgdir"/usr +} + +_py() { + pkgdesc="$pkgdesc (python2 bindings)" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/python2.7 "$subpkgdir"/usr/lib +} + +md5sums="b8fff9f3d121531bc17430e3f4ea6ed0 libieee1284-0.2.11.tar.bz2 +253f46b3113300b6570f79359e5d098c io_h.patch" +sha256sums="7730de107782e5d2b071bdcb5b06a44da74856f00ef4a9be85d1ba4806a38f1a libieee1284-0.2.11.tar.bz2 +a9fc34e4e313c544572cf795d967aecf9aa33510ecaf01d5099d0c5b56bb20a0 io_h.patch" +sha512sums="06cc3049ce15613d34e39dc71bc572843c61ab64077c29ef9a6257edb0849c98565ff612a4cf787bc9642a39f1c89b7c47a20fb27f2318105be82aad8d472bb9 libieee1284-0.2.11.tar.bz2 +dccf1a78c02c6c1ea25eb3e054327298aac11972a32fafaa2180db31441f69cc1528bcb73127b7721776e946edee2344273d77443146bd707535bad148209453 io_h.patch" diff --git a/testing/libieee1284/io_h.patch b/testing/libieee1284/io_h.patch new file mode 100644 index 0000000000..ccacfcc8a9 --- /dev/null +++ b/testing/libieee1284/io_h.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 ++#include "io.h" + #endif + + #elif defined(HAVE_SOLARIS) -- 2.11.0 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---