summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2013-07-18 12:19:39 +0800
committerTing-Wei Lan <lantw44@gmail.com>2013-07-18 12:19:39 +0800
commit6206e2ad5a7953436e971f60027cd36609d30e58 (patch)
tree302909474edf84ad5c3747ae6d4363ed4bd9749a
parent7f64e40f1d7cf83013f40ae8df5fcaf812809ef8 (diff)
downloadAUR4-PKGBUILD-6206e2ad5a7953436e971f60027cd36609d30e58.tar
AUR4-PKGBUILD-6206e2ad5a7953436e971f60027cd36609d30e58.tar.gz
AUR4-PKGBUILD-6206e2ad5a7953436e971f60027cd36609d30e58.tar.bz2
AUR4-PKGBUILD-6206e2ad5a7953436e971f60027cd36609d30e58.tar.lz
AUR4-PKGBUILD-6206e2ad5a7953436e971f60027cd36609d30e58.tar.xz
AUR4-PKGBUILD-6206e2ad5a7953436e971f60027cd36609d30e58.tar.zst
AUR4-PKGBUILD-6206e2ad5a7953436e971f60027cd36609d30e58.zip
ve: 1.1 (initial commit)
-rw-r--r--ve/.SRCINFO15
-rw-r--r--ve/0001-Fix-incorrent-build-parameters.patch63
-rw-r--r--ve/PKGBUILD26
3 files changed, 104 insertions, 0 deletions
diff --git a/ve/.SRCINFO b/ve/.SRCINFO
new file mode 100644
index 0000000..f53d3c6
--- /dev/null
+++ b/ve/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = ve
+ pkgdesc = NTHU-CS Maple BBS 2.36 BBS-like editor
+ pkgver = 1.1
+ pkgrel = 1
+ url = http://netlab.cse.yzu.edu.tw/~statue/freebsd/zh-tut/ve.html
+ arch = x86_64
+ arch = i686
+ license = custom
+ source = ftp://freebsd.csie.nctu.edu.tw/pub/distfiles/ve-1.1.tgz
+ source = 0001-Fix-incorrent-build-parameters.patch
+ md5sums = 8614598698ce0811c880714530f5892d
+ md5sums = f061844a40d70f245fb083b48f5b83cc
+
+pkgname = ve
+
diff --git a/ve/0001-Fix-incorrent-build-parameters.patch b/ve/0001-Fix-incorrent-build-parameters.patch
new file mode 100644
index 0000000..5d8b236
--- /dev/null
+++ b/ve/0001-Fix-incorrent-build-parameters.patch
@@ -0,0 +1,63 @@
+From 94b15e800eb68da6fd1ca6c667cbdfabf5e6cbfe Mon Sep 17 00:00:00 2001
+From: LAN-TW <lantw44@gmail.com>
+Date: Thu, 18 Jul 2013 12:05:50 +0800
+Subject: [PATCH] Fix incorrent build parameters
+
+---
+ Makefile | 15 ++++++++-------
+ term.c | 1 -
+ 2 files changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index bc9b288..7cff95a 100644
+--- a/Makefile
++++ b/Makefile
+@@ -4,15 +4,15 @@ OBJ = edit.o term.o screen.o stuff.o io.o editor.o
+ #----------------------------------------------------------
+ # FreeBSD
+ #----------------------------------------------------------
+-CFLAGS ?= -O -pipe
+-CFLAGS += -DVEDITOR
+-LIBS = -ltermcap -lcompat
++#CFLAGS ?= -O -pipe
++#CFLAGS += -DVEDITOR
++#LIBS = -ltermcap -lcompat
+
+ #----------------------------------------------------------
+ # Linux
+ #----------------------------------------------------------
+-#CFLAGS = -DVEDITOR -DLINUX
+-#LIBS = -ltermcap -lbsd
++CFLAGS = -DVEDITOR -DLINUX
++LIBS = -lncurses
+
+ #----------------------------------------------------------
+ # SunOS
+@@ -26,9 +26,10 @@ clean:
+ rm -f *.o ve
+
+ install: all
++ mkdir -p $(PREFIX)/bin
+ mkdir -p $(PREFIX)/share/ve
+- $(BSD_INSTALL_PROGRAM) ve $(PREFIX)/bin
+- $(BSD_INSTALL_DATA) ve.hlp $(PREFIX)/share/ve
++ install ve $(PREFIX)/bin
++ install -m 444 ve.hlp $(PREFIX)/share/ve
+
+ ve: $(OBJ)
+ $(CC) $(CFLAGS) -o ve $(OBJ) $(LIBS)
+diff --git a/term.c b/term.c
+index 1a71135..f4aa104 100644
+--- a/term.c
++++ b/term.c
+@@ -15,7 +15,6 @@
+ #endif
+
+ #ifdef LINUX
+-#include <linux/termios.h>
+ #endif
+ #define stty(fd, data) tcsetattr( fd, TCSETS, data )
+ #define gtty(fd, data) tcgetattr( fd, data )
+--
+1.8.3.3
+
diff --git a/ve/PKGBUILD b/ve/PKGBUILD
new file mode 100644
index 0000000..dc06dbb
--- /dev/null
+++ b/ve/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: lantw44 (at) gmail (dot) com
+
+pkgname=ve
+pkgver=1.1
+pkgrel=1
+pkgdesc="NTHU-CS Maple BBS 2.36 BBS-like editor"
+arch=('x86_64' 'i686')
+url="http://netlab.cse.yzu.edu.tw/~statue/freebsd/zh-tut/ve.html"
+license=('custom')
+depends=()
+source=("ftp://freebsd.csie.nctu.edu.tw/pub/distfiles/${pkgname}-${pkgver}.tgz"
+ "0001-Fix-incorrent-build-parameters.patch")
+md5sums=('8614598698ce0811c880714530f5892d'
+ 'f061844a40d70f245fb083b48f5b83cc')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ patch -p1 < ../0001-Fix-incorrent-build-parameters.patch
+ unset CPPFLAGS
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make PREFIX="${pkgdir}/usr" install
+}