blob: f2f40a48d22fcd613e69aea3a7ffc9ff4610624e (
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
|
# Maintainer: Andreas Louv <andreas@louv.dk>
pkgname=rpglefmt-git
pkgver=0.0.4
pkgrel=1
pkgdesc="Format Free Form ILE RPG programs"
arch=("any")
url="https://github.com/andlrc/rpglefmt"
license=("GNU")
depends=()
makedepends=("git" "make")
provides=("rpglefmt")
source=('rpglefmt::git+git://github.com/andlrc/rpglefmt#branch=master')
md5sums=("SKIP")
pkgver()
{
cd "$srcdir/${pkgname%-git}"
sed 's/^#define.*VERSION.*"\(.*\)".*/\1/p;d' rpglefmt.c
}
package()
{
cd "$srcdir/${pkgname%-git}"
make CFLAGS="-O2 -DFEAT_ICEBREAK" rpglefmt
install -D rpglefmt $pkgdir/usr/bin/rpglefmt
install -Dm644 rpglefmt.1 $pkgdir/usr/share/man/man1/rpglefmt.1
}
|