initial import
This commit is contained in:
38
txt2man/PKGBUILD
Normal file
38
txt2man/PKGBUILD
Normal file
@@ -0,0 +1,38 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=txt2man
|
||||
pkgver=1.7.1
|
||||
_debver=1.7.1
|
||||
_debrel=1
|
||||
pkgrel=1
|
||||
pkgdesc='Converts flat ASCII text to man page format'
|
||||
arch=('any')
|
||||
url='https://github.com/mvertes/txt2man'
|
||||
license=('GPL-2')
|
||||
depends=( 'bash' 'gawk')
|
||||
makedepends=('quilt')
|
||||
source=("https://github.com/mvertes/txt2man/archive/txt2man-$pkgver.tar.gz"
|
||||
"https://deb.debian.org/debian/pool/main/t/txt2man/txt2man_$_debver-$_debrel.debian.tar.xz")
|
||||
sha512sums=('550b1d30a4435f35d03920d89f5f2adc2a937de7575c4ddc51ee9f4fe370975b45e51f5aec0eb865ead4b16d88ad31f3150cd3235362b1fc7e6d7b3c6233852a'
|
||||
'f2c4e81169c3859ec45fd3124d1e6ca2a005968bc5f99c5d824f95df76a9051293de474fa791a4550dfb1437568df2dd7a581e9d589d4ed2231b56f5dba25199')
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir"/txt2man-txt2man-$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'
|
||||
|
||||
rm -rf ./debian
|
||||
mv "$srcdir"/debian .
|
||||
|
||||
quilt push -av
|
||||
fi
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir"/txt2man-txt2man-$pkgver
|
||||
PATH=./:$PATH make prefix="$pkgdir"/usr install
|
||||
install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
}
|
||||
Reference in New Issue
Block a user