summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 22d480a32496bec708385374f18b34400d2cac35 (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: Ignacio Losiggio <iglosiggio@dc.uba.ar>
pkgname=ldpl-git
pkgver=4.4.r41.d27b8e4
pkgrel=1
pkgdesc="COBOL inspired language, designed to be expressive, fast, readable and easy to learn."
arch=('x86_64')
url="https://www.ldpl-lang.org/"
license=('GPL3')
depends=('gcc-libs')
makedepends=('git' 'awk')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/Lartu/ldpl.git" "dont-do-mandb.patch" "lpm-flags.patch")
md5sums=('SKIP' '2764e75489cfc352d2bad67f554d2cc6' 'c4cb95cca6596d629299ac58e0d0e551')

pkgver() {
	cd "$srcdir/${pkgname%-git}"

	printf "%s" "$(git describe --tags --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

prepare() {
	cd "$srcdir/${pkgname%-git}"
	patch -p1 -i "$srcdir/dont-do-mandb.patch"
	patch -p1 -i "$srcdir/lpm-flags.patch"
}

build() {
	cd "$srcdir/${pkgname%-git}/src"
	make LFLAGS="$LDFLAGS" LPMFLAGS="$CXXFLAGS $LDFLAGS"
}

package() {
	cd "$srcdir/${pkgname%-git}/src"
	make PREFIX=/usr DESTDIR="$pkgdir/" install
}