summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD40
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a51dcd99349
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = teletype-svn
+ pkgdesc = Serial emulator based on tinyserial
+ pkgver = r582
+ pkgrel = 1
+ url = http://www.clifford.at/tools.html
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = subversion
+ depends = readline
+ provides = teletype
+ conflicts = teletype
+ source = teletype::svn+http://svn.clifford.at/tools/trunk
+ sha256sums = SKIP
+
+pkgname = teletype-svn
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..db51d420f5b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Devin J. Pohly <djpohly+arch@gmail.com>
+pkgname=teletype-svn
+pkgver=r582
+pkgrel=1
+pkgdesc="Serial emulator based on tinyserial"
+arch=('i686' 'x86_64')
+url="http://www.clifford.at/tools.html"
+license=('custom')
+depends=('readline')
+makedepends=('subversion')
+provides=("${pkgname%-*}")
+conflicts=("${pkgname%-*}")
+source=("teletype::svn+http://svn.clifford.at/tools/trunk")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-*}"
+ printf "r%s" "$(svnversion | tr -d 'A-z')"
+}
+
+prepare() {
+ cd "$srcdir/${pkgname%-*}"
+ sed -i -e 's/-ltermcap//g' Makefile
+}
+
+build() {
+ cd "$srcdir/${pkgname%-*}"
+ make teletype
+}
+
+package() {
+ cd "$srcdir/${pkgname%-*}"
+
+ install -d "$pkgdir/usr/share/licenses/$pkgname"
+ sed '/-----/,/-----/d;/\*\//q' teletype.c > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ install -D teletype "$pkgdir/usr/bin/teletype"
+}
+
+# vim:set ts=2 sw=2 et: