summaryrefslogtreecommitdiff
path: root/pcr/byaccj
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-02-08 07:46:46 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-02-08 14:00:10 +0100
commit3668cce7ff47496a3d1a24e154ac87629832d10d (patch)
tree74267ac09d35c9755c2f2d538c248cd2b0b00e0f /pcr/byaccj
parent7eee3a5c23d63e386c4294e76b2912525f0a8ce0 (diff)
downloadabslibre-3668cce7ff47496a3d1a24e154ac87629832d10d.tar.gz
abslibre-3668cce7ff47496a3d1a24e154ac87629832d10d.tar.bz2
abslibre-3668cce7ff47496a3d1a24e154ac87629832d10d.zip
java/* moved to pcr/
Diffstat (limited to 'pcr/byaccj')
-rw-r--r--pcr/byaccj/PKGBUILD36
-rw-r--r--pcr/byaccj/ldflags.patch12
2 files changed, 48 insertions, 0 deletions
diff --git a/pcr/byaccj/PKGBUILD b/pcr/byaccj/PKGBUILD
new file mode 100644
index 000000000..10f2bef95
--- /dev/null
+++ b/pcr/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' 'mips64el')
+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
+}
diff --git a/pcr/byaccj/ldflags.patch b/pcr/byaccj/ldflags.patch
new file mode 100644
index 000000000..81574d011
--- /dev/null
+++ b/pcr/byaccj/ldflags.patch
@@ -0,0 +1,12 @@
+diff -ru byaccj1.15.orig/src/Makefile byaccj1.15/src/Makefile
+--- byaccj1.15.orig/src/Makefile 2014-06-04 11:10:43.711980001 -0400
++++ byaccj1.15/src/Makefile 2014-06-04 11:13:00.635987894 -0400
+@@ -75,7 +75,7 @@
+ $(CC) -c $(CFLAGS) $(INC) $< -o $@
+
+ yacc: $(OBJ)
+- $(CC) -o yacc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 $(OBJ)
++ $(CC) -o yacc $(LDFLAGS) $(OBJ)
+ @echo "done"
+
+ clean: