packages/quilt/PKGBUILD
2024-04-09 19:40:48 +02:00

60 lines
1.6 KiB
Bash

# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Konstantin Gizdov <arch at kge dot pw>
# Contributor: Sébastien Luttringer
# Contributor: Peter Richard Lewis <plewis@aur.archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: dibblethewrecker <dibblethewrecker.at.jiwe.org>
pkgname=quilt
pkgver=0.67
pkgrel=2
pkgdesc='Manage a series of patches by keeping track of the changes each patch makes'
arch=(any)
url='https://savannah.nongnu.org/projects/quilt/'
license=('GPL-2.0-or-later')
depends=(
'bash'
'bzip2'
'diffstat'
'diffutils'
'findutils'
'gawk'
'gettext'
'gzip'
'patch'
'perl'
)
checkdepends=('ed')
validpgpkeys=('7CA69F4460F1BDC41FD2C858A5526B9BB3CD4E6A') # Jean Delvare
source=("https://savannah.nongnu.org/download/quilt/$pkgname-$pkgver.tar.gz"{,.sig}
"${pkgname}-grep-3.8.patch")
sha256sums=('3be3be0987e72a6c364678bb827e3e1fcc10322b56bc5f02b576698f55013cc2'
'SKIP'
'3be0f45ace3e110a139a9cf714f6c5059d450965021512572a9cae133d02dfdd')
prepare() {
cd "${pkgname}-${pkgver}"
patch -Np1 -i "${srcdir}/${pkgname}-grep-3.8.patch"
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --sysconfdir=/etc --without-rpmbuild
make
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
make check
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make BUILD_ROOT="$pkgdir" install
# move bash completion in right place
install -d -m 755 "$pkgdir/usr/share/bash-completion"
mv "$pkgdir/etc/bash_completion.d" "$pkgdir/usr/share/bash-completion/completions"
}
# vim:set ts=2 sw=2 et: