🔒 Repository is read-only – file editing is disabled.
123456789101112131415161718192021222324252627282930313233343536373839404142
pkgname: itstool
pkgver: '2.0.7'
pkgrel: '4'
pkgdesc: 'XML to PO template files and back'
url: 'https://itstool.org/'
arch: x86_64
license:
- GPL-3.0-or-later
depends:
- python
- libxml2
makedepends:
- autoconf
- automake
- libtool
- sed
- docbook-xml
- docbook-xsl
- libxml2
- python
source:
- 'fix-crash-wrong-encoding.patch'
- 'https://files.itstool.org/itstool/${pkgname}-${pkgver}.tar.bz2'
sha256sums:
- SKIP
- SKIP
build: |
cd ${pkgname}-${pkgver}
patch -Np1 -i ../fix-crash-wrong-encoding.patch
autoreconf -fvi
PYTHON=/usr/bin/python3 ./configure --prefix=/usr
make
make DESTDIR="${PKGDIR}" install
package: |
# Python 3.12+: niepoprawne escape'y ('\s', '\<', '\.') w re.sub/re.compile
# generuja SyntaxWarning w kazdym buildzie uzywajacym itstool.
sed -i -E "s/(re\.(sub|compile)\()'/\1r'/g" ${PKGDIR}/usr/bin/itstool
true