aboutsummaryrefslogtreecommitdiffstats
path: root/community/markdown/APKBUILD
blob: 23b6a1fb504fa2a373f0454edf503ed8a33be62d (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
31
32
33
34
# Contributor: z3bra <willy at mailoo dot org>
# Maintainer: Kevin Daudt <me@ikke.info>
pkgname=markdown
_pkgreal=Markdown
pkgver=1.0.1
pkgrel=0
pkgdesc="Text-to-HTML conversion tool for web writers"
url="https://daringfireball.net/projects/markdown/"
arch="noarch"
license="custom:BSD"
depends="perl"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://daringfireball.net/projects/downloads/Markdown_1.0.1.zip"

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

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

package() {
	cd "$_builddir"
        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"