blob: 4fb732b8e2d7db2d8cfdfb4465477ff19c8e1cea (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=discount
pkgver=2.2.4
pkgrel=0
pkgdesc="A Markdown to HTML translator written in C"
url="http://www.pell.portland.or.us/~orc/Code/discount/"
arch="all"
license="BSD"
depends="!markdown"
makedepends=""
checkdepends="diffutils"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="http://www.pell.portland.or.us/~orc/Code/discount/$pkgname-$pkgver.tar.bz2
configure.inc.patch
"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
./configure.sh \
--prefix=/usr \
--mandir=/usr/share/man \
--enable-all-features \
--with-fenced-code \
--pkg-config \
--shared
make
}
check() {
msg "Running testsuites..."
cd "$builddir"
make test
}
package() {
cd "$builddir"
make PREFIX=/usr DESTDIR="$pkgdir" install.everything
local bin; for bin in theme makepage mkd2html; do
mv "$pkgdir"/usr/bin/$bin \
"$pkgdir"/usr/bin/$pkgname-$bin
mv "$pkgdir"/usr/share/man/man1/$bin.1 \
"$pkgdir"/usr/share/man/man1/$pkgname-$bin.1
done
}
sha512sums="0650e0ce3f6948e3a30fdaa1a810e895f64621c55df46c7a5ed8755e65c1b718b7a1d1a1bfe0a87a3a59fbb13fca8907718f1aa095125a4b6e152602b8e490cf discount-2.2.4.tar.bz2
6935a52d3fa1ee70e21cf6290bd83e045e8da349ef48ab7241c4eb075caded11945c9d1eabc7e9cdf549a4101daf81e10675464b84876838da669d2086f1de43 configure.inc.patch"
|