archrelease: copy trunk to extra-x86_64
[arch-packages.git] / itstool / trunk / PKGBUILD
blob1196c467db368d5e3645fd1b2bc4b199e008b2e2
1 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
2 # Contributor: Michael Pusterhofer <pusterhofer(at)student(dot)tugraz(dot)at>
4 pkgname=itstool
5 pkgver=2.0.7
6 pkgrel=1
7 epoch=1
8 pkgdesc="XML to PO and back again"
9 arch=(any)
10 url="http://itstool.org/"
11 license=(GPL3)
12 depends=(python libxml2 docbook-xml)
13 makedepends=(git)
14 _commit=f1c6544dcd83a73a5ccea9e0c48cf9a47e006190  # tags/2.0.7^0
15 source=("git+https://github.com/itstool/itstool#commit=$_commit"
16         0001-Fix-the-crash-from-912099.patch)
17 sha256sums=('SKIP'
18             'b43cea38118aaefa6724136d142dcc7099cd6de04cf2e226f53d4310dfe207cc')
20 pkgver() {
21   cd $pkgname
22   git describe --tags | sed 's/-/+/g'
25 prepare() {
26   cd $pkgname
28   # https://src.fedoraproject.org/rpms/itstool/blob/rawhide/f/itstool-2.0.5-fix-crash-wrong-encoding.patch
29   git apply -3 ../0001-Fix-the-crash-from-912099.patch
31   autoreconf -fvi
34 build() {
35   cd $pkgname
36   ./configure --prefix=/usr
37   make
40 check() {
41   cd $pkgname
42   make check
45 package() {
46   cd $pkgname
47   make DESTDIR="$pkgdir" install