summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d4d18acfbc504abb26036adaae00ccb0410022a7 (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
37
38
39
40
41
42
# Maintainer: Zhao Jun <wlarekap32 cat protonmail dog com>
# Contributor: <tplasdio cat codeberg dog org>

pkgname=gawk-awkl-git
_pkgname=awkl
pkgdesc="Awk's well-kempt library. Collection of modules to augment gawk functionality"
pkgver=0
pkgrel=1
license=('GPL-3.0-or-later')
url='https://codeberg.org/tplasdio/awkl'
depends=(
 gawk
)
makedepends=(
 git
 automake
 autoconf
 make
)
arch=(any)
source=("git+$url")
md5sums=('SKIP')

pkgver() {
	cd -- "$_pkgname"
	printf "%s.r%s.%s" \
		"$(git describe --abbrev=0 --tags | tr -d v)" \
		"$(git rev-list --count HEAD)" \
		"$(git rev-parse --short HEAD)"
}

build() {
	cd -- "$_pkgname"
	autoreconf -i
	./configure --prefix /usr
	make
}

package() {
	cd -- "$_pkgname"
	make DESTDIR="$pkgdir" install
}