archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libieee1284 / repos / extra-x86_64 / PKGBUILD
blob4ef9a2794f696409933580a099b2fafc9aeff152
1 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
2 # Contributor: Manolis Tzanidakis <manolis@archlinux.org>
4 pkgname=libieee1284
5 pkgver=0.2.11
6 _tag=${pkgver//\./_}
7 pkgrel=15
8 pkgdesc="A library to query devices connected in parallel port"
9 arch=('x86_64')
10 license=('GPL2')
11 url="https://github.com/twaugh/libieee1284"
12 optdepends=('python: for python module')
13 makedepends=('python' 'xmlto' 'docbook-xml' 'docbook-xsl')
14 source=(libieee1284-$pkgver.zip::https://github.com/twaugh/libieee1284/archive/V$_tag.zip
15         upstream_python_fix1.patch
16         upstream_python_fix2.patch
17         python3.patch)
18 sha256sums=('9c3208730fe7a1cefc06e252f4b579685a9e0942ccf0a9cd617810198c8112a4'
19             'a0b46ccba73b4e691a001d3bd1a6f4046c5fa26244fcdc3dc10c8baa9886e57f'
20             'c63d207205af43d3413e0e969771163185ab27cc1dde07577fec13f344d9d053'
21             '9009783b521e53bde4e1f2f291e9ebb0db57e821c9cdf20c21b937a3f4308d42')
23 prepare() {
24   cd $pkgname-$_tag
26   patch -p1 < ../upstream_python_fix1.patch # https://github.com/twaugh/libieee1284/commit/c48855528beee1397d883f9c8a5df7aed5c917a6
27   patch -p1 < ../upstream_python_fix2.patch # https://github.com/twaugh/libieee1284/commit/b4d63327dfef8dbf12aabf4bba0f6818a3519995
29   patch -p1 < ../python3.patch # https://github.com/twaugh/libieee1284/issues/4
32 build() {
33   cd $pkgname-$_tag
35   ./bootstrap
36   ./configure --prefix=/usr --mandir=/usr/share/man --with-python
37   make
40 package() {
41   cd $pkgname-$_tag
42   make DESTDIR="$pkgdir"/ install