summaryrefslogtreecommitdiffstats
path: root/mandown-md-viewer
diff options
context:
space:
mode:
Diffstat (limited to 'mandown-md-viewer')
-rw-r--r--mandown-md-viewer/.SRCINFO15
-rw-r--r--mandown-md-viewer/PKGBUILD25
-rw-r--r--mandown-md-viewer/mandown-md-viewer.install11
3 files changed, 51 insertions, 0 deletions
diff --git a/mandown-md-viewer/.SRCINFO b/mandown-md-viewer/.SRCINFO
new file mode 100644
index 0000000..c2e2602
--- /dev/null
+++ b/mandown-md-viewer/.SRCINFO
@@ -0,0 +1,15 @@
1pkgbase = mandown-md-viewer
2 pkgdesc = man-page inspired Markdown viewer
3 pkgver = 1.0.4
4 pkgrel = 2
5 url = https://github.com/Titor8115/mandown
6 install = mandown-md-viewer.install
7 arch = x86_64
8 license = MIT
9 makedepends = ncurses
10 depends = libxml2
11 depends = libconfig
12 source = mandown-1.0.4.tar.gz::https://github.com/Titor8115/mandown/archive/refs/tags/v1.0.4.tar.gz
13 sha256sums = dc719e6a28a4585fe89458eb8c810140ed5175512b089b4815b3dda6a954ce3e
14
15pkgname = mandown-md-viewer
diff --git a/mandown-md-viewer/PKGBUILD b/mandown-md-viewer/PKGBUILD
new file mode 100644
index 0000000..53ccc3a
--- /dev/null
+++ b/mandown-md-viewer/PKGBUILD
@@ -0,0 +1,25 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2pkgname=mandown-md-viewer
3_pkgname=mandown
4pkgver=1.0.4
5pkgrel=2
6pkgdesc="man-page inspired Markdown viewer"
7arch=('x86_64')
8url="https://github.com/Titor8115/mandown"
9license=('MIT')
10depends=('libxml2' 'libconfig')
11makedepends=('ncurses')
12install="${pkgname}.install"
13source=("$_pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v${pkgver}.tar.gz")
14sha256sums=('dc719e6a28a4585fe89458eb8c810140ed5175512b089b4815b3dda6a954ce3e')
15
16build() {
17 cd "$_pkgname-$pkgver"
18 PREFIX="/usr" make
19}
20
21package() {
22 cd "$_pkgname-$pkgver"
23 PREFIX="$pkgdir/usr" make install
24 install -Dm644 "$srcdir/$_pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
25}
diff --git a/mandown-md-viewer/mandown-md-viewer.install b/mandown-md-viewer/mandown-md-viewer.install
new file mode 100644
index 0000000..3b8677c
--- /dev/null
+++ b/mandown-md-viewer/mandown-md-viewer.install
@@ -0,0 +1,11 @@
1pre_install() {
2 pre_upgrade
3}
4
5pre_upgrade() {
6 cat << EOF
7
8 The name of the executable is 'mdn'
9
10EOF
11}