summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Perez de Castro2019-01-10 15:19:36 +0200
committerAdrian Perez de Castro2019-01-10 15:20:22 +0200
commitd5f41415919213ee93f250d2a84bbafef1a4ab8f (patch)
tree5e76c65a1b9b2b564687352b7d9c4620120786d3
downloadaur-d5f41415919213ee93f250d2a84bbafef1a4ab8f.tar.gz
Initial import
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD31
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7b5d72dcbc5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = mle
+ pkgdesc = Flexible terminal-based text editor
+ pkgver = 1.3
+ pkgrel = 1
+ url = https://github.com/adsr/mle
+ arch = x86_64
+ license = Apache
+ makedepends = uthash
+ depends = pcre
+ depends = termbox
+ depends = lua
+ source = https://github.com/adsr/mle/archive/v1.3.tar.gz
+ sha512sums = 52a7d1ed231b340fc0141d55068823dcf74aae800362afcb86b4f98d01f5b17b7872b38756b989b892bac84290744555049e5f4fd46424539a7b6aa7dedfc2f8
+
+pkgname = mle
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..c51e08cfec1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+/pkg/
+/src/
+/*.log
+/*.tar
+/*.tar.*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..368a8e2707e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Adrián Pérez de Castro <aperez@igalia.com>
+pkgdesc='Flexible terminal-based text editor'
+pkgname=mle
+pkgver=1.3
+pkgrel=1
+url='https://github.com/adsr/mle'
+license=(Apache)
+arch=(x86_64)
+depends=(pcre termbox lua)
+makedepends=(uthash)
+source=("${url}/archive/v${pkgver}.tar.gz")
+sha512sums=('52a7d1ed231b340fc0141d55068823dcf74aae800362afcb86b4f98d01f5b17b7872b38756b989b892bac84290744555049e5f4fd46424539a7b6aa7dedfc2f8')
+
+prepare () {
+ cd "${pkgname}-${pkgver}"
+
+ # The source code uses <lua5.3/lua.h>; and the Arch Linux "lua" package
+ # places the headers directly under /usr/include, so let's just use a
+ # symlink to provide the headers at the expected include location.
+ ln -snf /usr/include lua5.3
+}
+
+build () {
+ cd "${pkgname}-${pkgver}"
+ make prefix=/usr
+}
+
+package () {
+ cd "${pkgname}-${pkgver}"
+ make prefix=/usr DESTDIR="${pkgdir}" install
+}