aboutsummaryrefslogtreecommitdiffstats
path: root/community/markdown/APKBUILD
blob: 7ce3833cbb4a7bc84a2e568db2343a05a8589d22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Contributor: z3bra <willy at mailoo dot org>
# Maintainer: Kevin Daudt <me@ikke.info>
pkgname=markdown
_pkgreal=Markdown
pkgver=1.0.1
pkgrel=1
pkgdesc="Text-to-HTML conversion tool for web writers"
url="https://daringfireball.net/projects/markdown/"
arch="noarch"
license="BSD-3-Clause"
depends="perl"
makedepends="$depends_dev"
subpackages="$pkgname-doc"
source="https://daringfireball.net/projects/downloads/Markdown_1.0.1.zip"

builddir=$srcdir/${_pkgreal}_${pkgver}

build() {
	pod2man "Markdown.pl" > "$builddir/$pkgname.1"
}

package() {
	install -Dm755 "Markdown.pl" "${pkgdir}/usr/bin/${pkgname}"
	install -Dm644 "License.text" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	install -Dm644 "$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
}

md5sums="f17b3c2b2830c6fd2fe0098226e59a2f  Markdown_1.0.1.zip"
sha256sums="6520e9b6a58c5555e381b6223d66feddee67f675ed312ec19e9cee1b92bc0137  Markdown_1.0.1.zip"
sha512sums="962df356e641326fbf29cdedc36dafb5f04683f0b3f5eb1efb8e15994e1e000b5a6882c84f09db4a6f8f948811ebbe76759e27871c644e690884db31705eab1f  Markdown_1.0.1.zip"