summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSijmen J. Mulder2018-11-13 02:36:09 +0100
committerSijmen J. Mulder2018-11-13 02:36:09 +0100
commitbb38a8ef7db945c10e4d65db4df97506e4be649a (patch)
treed063684d2fa76332d721050967dcf916e7beb11f /PKGBUILD
downloadaur-trickle-pipe.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2d611f1c360
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Sijmen J. Mulder <ik@sjmulder.nl>
+pkgname=trickle-pipe
+pkgver=1.0
+pkgrel=1
+pkgdesc='600 baud pipe and terminal'
+arch=(x86_64)
+url=https://github.com/sjmulder/trickle
+license=(BSD)
+depends=(glibc)
+conflicts=(trickle)
+source=(trickle-$pkgver.tar.gz::https://github.com/sjmulder/trickle/archive/$pkgver.tar.gz)
+sha256sums=(b1029f75e43136cb0651ab61b23ec46e215cd4effd8294424961f7d70686ee59)
+
+build() {
+ cd trickle-$pkgver
+ make
+}
+
+check() {
+ cd trickle-$pkgver
+ echo a | ./trickle >/dev/null
+ ./tritty -- echo -n
+}
+
+package() {
+ cd trickle-$pkgver
+ make install PREFIX="$pkgdir/usr"
+ rm -r "$pkgdir/usr/share/doc"
+ install -d "$pkgdir/usr/share/licenses/trickle"
+ install LICENSE.md "$pkgdir/usr/share/licenses/trickle/"
+}