diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-04 13:33:56 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-04 13:33:56 -0400 |
commit | 5a53dfa50322787f5a4d8af16743c83cab48f0fa (patch) | |
tree | 6b34d83542e08a434122d51bee5bd53c76d5f7d2 /java/byaccj/PKGBUILD | |
parent | 7a62e84f435958b9f335e5b7a4f2e89caef7c992 (diff) |
add java/byaccj
Diffstat (limited to 'java/byaccj/PKGBUILD')
-rw-r--r-- | java/byaccj/PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/java/byaccj/PKGBUILD b/java/byaccj/PKGBUILD new file mode 100644 index 000000000..6ae2317fd --- /dev/null +++ b/java/byaccj/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Maintainer (AUR): <ying@althonx4> + +pkgname=byaccj +pkgver=1.15 +pkgdesc="Berkeley yacc with Java output" +url="http://byaccj.sourceforge.net/" +license=('custom:Public Domain') + +pkgrel=1 +arch=('i686' 'x86_64') +source=(http://downloads.sourceforge.net/project/byaccj/${pkgname}/${pkgver}/${pkgname}${pkgver}_src.tar.gz + http://metadata.ftp-master.debian.org/changelogs/main/b/byacc-j/byacc-j_${pkgver}-1_copyright + ldflags.patch) +md5sums=('5ee9959af35f245ac2c4355f85fdf351' + 'cc9e2ed821e7f2e5ef8f2be0fdc97b46' + '76fd678b41d614497cf77c6dba5de63e') + +prepare() { + cd "$srcdir"/$pkgname$pkgver + patch -Np1 -i ../ldflags.patch +} + +build() { + cd "$srcdir"/$pkgname$pkgver + make -C src linux CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" +} + +package() { + cd "$srcdir"/$pkgname$pkgver + install -Dm755 src/yacc.linux "$pkgdir"/usr/bin/byaccj + install -Dm644 src/yacc.1 "$pkgdir"/usr/share/man/man1/byaccj.1 + install -d "$pkgdir"/usr/share/doc/$pkgname + install -m644 docs/* -t "$pkgdir"/usr/share/doc/$pkgname + install -Dm644 ../byacc-j_$pkgver-1_copyright "$pkgdir"/usr/share/licenses/$pkgname/copyright +} |