summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authortPenguinLTG2019-01-26 18:51:53 -0500
committertPenguinLTG2019-01-26 19:27:15 -0500
commit1b4d0d14f537b26f5117083e284e0cdcbcaab96b (patch)
tree973727e3e0ad940c1a75b53f73697c5998ce956d
downloadaur-1b4d0d14f537b26f5117083e284e0cdcbcaab96b.tar.gz
Initial commit
-rw-r--r--.SRCINFO14
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD41
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..af1317659fb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = oed
+ pkgdesc = OpenED: Portable OpenBSD ed(1) editor.
+ pkgver = 6.4
+ pkgrel = 1
+ url = https://github.com/ibara/oed
+ arch = x86_64
+ arch = i686
+ license = BSD
+ license = ISC
+ source = https://github.com/ibara/oed/releases/download/oed-6.4/oed-6.4.tar.gz
+ md5sums = 4e0ff59a2d861c995b7198e11eaac353
+
+pkgname = oed
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..72e8ffc0db8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ec7fa19b451
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: tPenguinLTG <tpenguinltg@disroot.org>
+pkgname=oed
+pkgver=6.4
+pkgrel=1
+pkgdesc="OpenED: Portable OpenBSD ed(1) editor."
+arch=(x86_64 i686)
+url="https://github.com/ibara/oed"
+license=('BSD' 'ISC')
+depends=()
+source=("https://github.com/ibara/${pkgname}/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz")
+md5sums=('4e0ff59a2d861c995b7198e11eaac353')
+
+build() {
+ local f
+ local license_file
+
+ cd "$pkgname-$pkgver"
+
+ ./configure --prefix=/usr --mandir=/usr/share/man
+ make
+
+ # Extract licenses from files
+ mkdir ../licenses
+ for f in *.c *.h; do
+ license_file="../licenses/${f}.LICENSE"
+ sed '/Copyright/!d; :a; s/ \* \{0,1\}//; n; /\*\//d; $!ba' "$f" >"$license_file"
+ [ -s "$license_file" ] || rm -f -- "$license_file"
+ done
+}
+
+package() {
+ local f
+
+ cd "$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+
+ # Install licenses
+ for f in ../licenses/*.LICENSE; do
+ install -Dm644 "$f" "$pkgdir/usr/share/licenses/$pkgname/${f##*/}"
+ done
+}