diff options
Diffstat (limited to 'mandown-md-viewer')
-rw-r--r-- | mandown-md-viewer/.SRCINFO | 15 | ||||
-rw-r--r-- | mandown-md-viewer/PKGBUILD | 25 | ||||
-rw-r--r-- | mandown-md-viewer/mandown-md-viewer.install | 11 |
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 @@ | |||
1 | pkgbase = 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 | |||
15 | pkgname = 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> | ||
2 | pkgname=mandown-md-viewer | ||
3 | _pkgname=mandown | ||
4 | pkgver=1.0.4 | ||
5 | pkgrel=2 | ||
6 | pkgdesc="man-page inspired Markdown viewer" | ||
7 | arch=('x86_64') | ||
8 | url="https://github.com/Titor8115/mandown" | ||
9 | license=('MIT') | ||
10 | depends=('libxml2' 'libconfig') | ||
11 | makedepends=('ncurses') | ||
12 | install="${pkgname}.install" | ||
13 | source=("$_pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v${pkgver}.tar.gz") | ||
14 | sha256sums=('dc719e6a28a4585fe89458eb8c810140ed5175512b089b4815b3dda6a954ce3e') | ||
15 | |||
16 | build() { | ||
17 | cd "$_pkgname-$pkgver" | ||
18 | PREFIX="/usr" make | ||
19 | } | ||
20 | |||
21 | package() { | ||
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 @@ | |||
1 | pre_install() { | ||
2 | pre_upgrade | ||
3 | } | ||
4 | |||
5 | pre_upgrade() { | ||
6 | cat << EOF | ||
7 | |||
8 | The name of the executable is 'mdn' | ||
9 | |||
10 | EOF | ||
11 | } | ||