blob: f68e88554efb814abf16d5961aecd337a3a8e1b2 (
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
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=libieee1284
pkgver=0.2.11
pkgrel=0
pkgdesc="A cross-platform library for parallel port access"
url="http://cyberelk.net/tim/libieee1284"
arch="all"
license="GPL2"
depends_dev="py-$pkgname"
makedepends="file python2-dev"
subpackages="$pkgname-dev $pkgname-doc py-$pkgname:_py"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
include.patch"
builddir="$srcdir/$pkgname-$pkgver"
options="!check"
build() {
cd "$builddir"
./configure \
--prefix=/usr \
--mandir=/usr/share/man
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
dev() {
default_dev
mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}
_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"
|