# Maintainer: Tim Wanders _pkgname=pacman-src pkgname=pacman-src-git pkgver=1.1.41.ge8ab12f pkgrel=1 pkgdesc="pacman-src: A simple tool to compile packages from source using the ABS" arch=('any') url="https://gitlab.com/tim241/${_pkgname}" license=('GPL3') provides=('pacman-src') conflicts=('pacman-src') depends=('bash' 'pacman' 'git' 'shfmt') makedepends=('help2man') source=("git+https://gitlab.com/tim241/${_pkgname}.git") sha256sums=('SKIP') pkgver() { cd "$_pkgname" git describe --tags | sed -e 's|-|.|g' } build() { cd "$_pkgname" # Fix incorrectly generating man page export _system_config_file="src/conf/pacman-src.conf" make VERSION="$pkgver-git" -j1 unset _system_config_file } package() { cd "$_pkgname" make install prefix="/usr/" DESTDIR="$pkgdir" -j1 }