63 lines
1.5 KiB
Bash
63 lines
1.5 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=itstool
|
|
pkgver=2.0.7
|
|
pkgrel=01
|
|
epoch=1
|
|
pkgdesc="XML to PO and back again"
|
|
arch=(any)
|
|
url="http://itstool.org/"
|
|
depends=(python libxml2 docbook-xml)
|
|
makedepends=(git)
|
|
_commit=f1c6544dcd83a73a5ccea9e0c48cf9a47e006190 # tags/2.0.7^0
|
|
source=("git+https://github.com/itstool/itstool#commit=$_commit"
|
|
0001-Fix-the-crash-from-912099.patch)
|
|
|
|
pkgver() {
|
|
cd $pkgname
|
|
git describe --tags | sed 's/-/+/g'
|
|
}
|
|
|
|
prepare() {
|
|
cd $pkgname
|
|
|
|
# https://src.fedoraproject.org/rpms/itstool/blob/rawhide/f/itstool-2.0.5-fix-crash-wrong-encoding.patch
|
|
git apply -3 ../0001-Fix-the-crash-from-912099.patch
|
|
|
|
autoreconf -fvi
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=(GPL3)
|
|
|
|
sha256sums=(SKIP
|
|
b43cea38118aaefa6724136d142dcc7099cd6de04cf2e226f53d4310dfe207cc) # 0001-Fix-the-crash-from-912099.patch
|
|
|
|
|
|
# Note to packager:
|
|
ls -l *pkg.tar.lz
|
|
echo "you must rename this package to meet SF naming before you move to the repo"
|
|
mv $(ls -l $pkgname*pkg.tar.lz) $pkgname-$epoch_$pkgver-$pkgrel-$arch.pkg.tar.lz >pkg-mv.log
|
|
|