mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 10:04:37 +08:00
31 lines
679 B
Bash
31 lines
679 B
Bash
# Maintainer: abveritas@chakra-project.org
|
|
# Contributor: Michael Pusterhofer <pusterhofer(at)student(dot)tugraz(dot)at>
|
|
|
|
pkgname=itstool
|
|
pkgver=2.0.2
|
|
pkgrel=1
|
|
pkgdesc="XML to PO and back again"
|
|
arch=('x86_64')
|
|
url="http://itstool.org/"
|
|
license=('GPL3')
|
|
source=("http://files.itstool.org/itstool/$pkgname-$pkgver.tar.bz2")
|
|
depends=('python2' 'libxml2')
|
|
sha256sums=('bf909fb59b11a646681a8534d5700fec99be83bb2c57badf8c1844512227033a')
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
sed -i '1s|#!/usr/bin/python|&2|' itstool itstool.in
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname-$pkgver
|
|
make -k check
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
}
|