summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ffcb2554ef42a0cec81877f509e425e1fd7f6c2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Tim Wanders <timwanders241@gmail.com>
_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
}