summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Perez de Castro2019-01-12 00:35:54 +0200
committerAdrian Perez de Castro2019-01-12 00:35:54 +0200
commit9e741651832fe8ae0cbfb082ba370044e4021cde (patch)
tree322d62f9b4ad2acca2a25520029dc7a345fecdf2
parentd5f41415919213ee93f250d2a84bbafef1a4ab8f (diff)
downloadaur-9e741651832fe8ae0cbfb082ba370044e4021cde.tar.gz
Install manpage and run tests in check()
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 8 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7b5d72dcbc5..4b2907f1f20 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = mle
pkgdesc = Flexible terminal-based text editor
pkgver = 1.3
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/adsr/mle
arch = x86_64
license = Apache
diff --git a/PKGBUILD b/PKGBUILD
index 368a8e2707e..5559d37ecac 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgdesc='Flexible terminal-based text editor'
pkgname=mle
pkgver=1.3
-pkgrel=1
+pkgrel=2
url='https://github.com/adsr/mle'
license=(Apache)
arch=(x86_64)
@@ -25,7 +25,13 @@ build () {
make prefix=/usr
}
+check () {
+ cd "${pkgname}-${pkgver}"
+ make test
+}
+
package () {
cd "${pkgname}-${pkgver}"
make prefix=/usr DESTDIR="${pkgdir}" install
+ install -Dm644 mle.1 "${pkgdir}/usr/share/man/man1/mle.1"
}