initial import
This commit is contained in:
42
txt2tags/PKGBUILD
Normal file
42
txt2tags/PKGBUILD
Normal file
@@ -0,0 +1,42 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=txt2tags
|
||||
pkgver=3.4
|
||||
_debver=$pkgver
|
||||
_debrel=2
|
||||
pkgrel=1
|
||||
pkgdesc="A text formatting and conversion tool."
|
||||
arch=('any')
|
||||
url='http://www.txt2tags.org'
|
||||
license=('GPL-2')
|
||||
depends=('python')
|
||||
makedepends=('python-setuptools' 'quilt')
|
||||
source=("http://deb.debian.org/debian/pool/main/t/txt2tags/txt2tags_$pkgver.orig.tar.xz"
|
||||
"https://deb.debian.org/debian/pool/main/t/txt2tags/txt2tags_$_debver-$_debrel.debian.tar.xz")
|
||||
sha512sums=('493ac1826ffe69bbf27f333b3d38a207f33b4088cbe3e4109c143f4b53d925208cf1496d98aa7708fd35484dcb7a707139df502ecbfb8f911887c06e91a4d363'
|
||||
'dcaff3665849f26476131caaf30aa0a6ec42d89221b20e5f96edc0e6c52277864f517f689c99afdc7464a26cb11bded134bd18841078c3536b24f6320678a69c')
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
||||
# Debian patches
|
||||
export QUILT_PATCHES=debian/patches
|
||||
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
||||
export QUILT_DIFF_ARGS='--no-timestamps'
|
||||
|
||||
mv "$srcdir"/debian .
|
||||
|
||||
quilt push -av
|
||||
fi
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
python setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
python setup.py install --root="$pkgdir"
|
||||
install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/$pkgname"
|
||||
}
|
||||
Reference in New Issue
Block a user