* update libieee1284 to 0.2.11-18

This commit is contained in:
Alexander Baldeck 2024-12-13 13:24:08 +01:00
parent e74c74f3f2
commit e7ec101600
3 changed files with 66 additions and 21 deletions

29
libieee1284/.SRCINFO Normal file
View File

@ -0,0 +1,29 @@
pkgbase = libieee1284
pkgdesc = A library to query devices connected in parallel port
pkgver = 0.2.11
pkgrel = 18
url = https://github.com/twaugh/libieee1284
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = GPL-2.0-or-later
makedepends = docbook-xml
makedepends = docbook-xsl
makedepends = python
makedepends = xmlto
depends = glibc
optdepends = python: for python module
source = libieee1284-0.2.11.tar.gz::https://github.com/twaugh/libieee1284/archive/V0_2_11.tar.gz
source = upstream_python_fix1.patch::https://github.com/twaugh/libieee1284/commit/c48855528beee1397d883f9c8a5df7aed5c917a6.patch
source = upstream_python_fix2.patch::https://github.com/twaugh/libieee1284/commit/b4d63327dfef8dbf12aabf4bba0f6818a3519995.patch
source = fix-python-3-compatibility.patch::https://github.com/twaugh/libieee1284/commit/357005f6b19c4e2febd3c0f17e59de541accbe92.patch
source = fix-python-3.12-compatibility.patch::https://github.com/twaugh/libieee1284/commit/cf59766dd848bd8b4318b1c67b5df053903ddefb.patch
sha256sums = eb6a4305f5d44f74b548c8dd41ec1103175cabb57f9661bec4af49e11f8a0238
sha256sums = 53dc16334556f7c2554bcb6d2370c3bae4d07d29af34fb96ffa4d522a9eedc0f
sha256sums = 20190a7841f0fc672ead0caf1cf87a1e94b824515906ea972ae17bdb5ce99f82
sha256sums = 40efc0e6ab7c8ab30a61b89ea515dcdfbd5b110c2c08feccda7abb2dc3381583
sha256sums = 38dad4a5eb686c6cfe45b6bdedb2c68ad8625db10783f313024131752c8ecabe
pkgname = libieee1284

View File

@ -0,0 +1,7 @@
[libieee1284]
source = "git"
git = "https://github.com/twaugh/libieee1284"
from_pattern = '_'
to_pattern = '.'
prefix = "V"
include_regex = 'V\d+_\d+_\d+'

View File

@ -1,45 +1,54 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Maintainer: Anatol Pomozov
# Maintainer: Carl Smedstad <carsme@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Manolis Tzanidakis <manolis@archlinux.org>
pkgname=libieee1284
pkgver=0.2.11
_tag=${pkgver//\./_}
pkgrel=16.1
pkgrel=18
pkgdesc="A library to query devices connected in parallel port"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
license=('GPL2')
license=('GPL-2.0-or-later')
url="https://github.com/twaugh/libieee1284"
depends=('glibc')
makedepends=(
'docbook-xml'
'docbook-xsl'
'python'
'xmlto'
)
optdepends=('python: for python module')
makedepends=('python' 'xmlto' 'docbook-xml' 'docbook-xsl')
source=(libieee1284-$pkgver.zip::https://github.com/twaugh/libieee1284/archive/V$_tag.zip
upstream_python_fix1.patch
upstream_python_fix2.patch
python3.patch)
sha256sums=('9c3208730fe7a1cefc06e252f4b579685a9e0942ccf0a9cd617810198c8112a4'
source=(
"$pkgname-$pkgver.tar.gz::$url/archive/V$_tag.tar.gz"
"upstream_python_fix1.patch::$url/commit/c48855528beee1397d883f9c8a5df7aed5c917a6.patch"
"upstream_python_fix2.patch::$url/commit/b4d63327dfef8dbf12aabf4bba0f6818a3519995.patch"
"fix-python-3-compatibility.patch::$url/commit/357005f6b19c4e2febd3c0f17e59de541accbe92.patch"
"fix-python-3.12-compatibility.patch::$url/commit/cf59766dd848bd8b4318b1c67b5df053903ddefb.patch"
)
sha256sums=('eb6a4305f5d44f74b548c8dd41ec1103175cabb57f9661bec4af49e11f8a0238'
'a0b46ccba73b4e691a001d3bd1a6f4046c5fa26244fcdc3dc10c8baa9886e57f'
'c63d207205af43d3413e0e969771163185ab27cc1dde07577fec13f344d9d053'
'9009783b521e53bde4e1f2f291e9ebb0db57e821c9cdf20c21b937a3f4308d42')
'40efc0e6ab7c8ab30a61b89ea515dcdfbd5b110c2c08feccda7abb2dc3381583'
'38dad4a5eb686c6cfe45b6bdedb2c68ad8625db10783f313024131752c8ecabe')
prepare() {
cd $pkgname-$_tag
patch -p1 < ../upstream_python_fix1.patch # https://github.com/twaugh/libieee1284/commit/c48855528beee1397d883f9c8a5df7aed5c917a6
patch -p1 < ../upstream_python_fix2.patch # https://github.com/twaugh/libieee1284/commit/b4d63327dfef8dbf12aabf4bba0f6818a3519995
patch -p1 < ../python3.patch # https://github.com/twaugh/libieee1284/issues/4
cd "$pkgname-$_tag"
patch -Np1 -F3 -i ../upstream_python_fix1.patch
patch -Np1 -F3 -i ../upstream_python_fix2.patch
patch -Np1 -i ../fix-python-3-compatibility.patch
patch -Np1 -i ../fix-python-3.12-compatibility.patch
}
build() {
cd $pkgname-$_tag
cd "$pkgname-$_tag"
./bootstrap
CFLAGS+=' -Wno-int-conversion' \
./configure --prefix=/usr --mandir=/usr/share/man --with-python
make
}
package() {
cd $pkgname-$_tag
make DESTDIR="$pkgdir"/ install
cd "$pkgname-$_tag"
make DESTDIR="$pkgdir" install
}