APKBUILD 1.13 KB
Newer Older
Carlo Landmeter's avatar
Carlo Landmeter committed
1 2 3
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=aha
Fabian Affolter's avatar
Fabian Affolter committed
4 5
pkgver=0.4.6.1
pkgrel=1
Carlo Landmeter's avatar
Carlo Landmeter committed
6 7 8
pkgdesc="ANSI color to HTML converter"
url="http://anonscm.debian.org/gitweb/?p=collab-maint/aha.git;a=summary"
arch="all"
Fabian Affolter's avatar
Fabian Affolter committed
9
license="MPL 1.1"
Carlo Landmeter's avatar
Carlo Landmeter committed
10 11 12 13 14
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
15
source="http://ftp.de.debian.org/debian/pool/main/a/aha/${pkgname}_$pkgver.orig.tar.gz"
Carlo Landmeter's avatar
Carlo Landmeter committed
16

17
_builddir="$srcdir"/$pkgname-$pkgver
Carlo Landmeter's avatar
Carlo Landmeter committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	install -Dm 755 aha \
		"$pkgdir"/usr/bin/aha || return 1
	install -Dm 644 aha.1 \
		"$pkgdir"/usr/share/man/man1/aha.1 || return 1
}

41 42 43
md5sums="97a9266932e84694d8afa79a27b49835  aha_0.4.6.1.orig.tar.gz"
sha256sums="799af2006523ad33ac3c9cc352701b4651d0e38395174f4a7c9d259cb31ce4e1  aha_0.4.6.1.orig.tar.gz"
sha512sums="5db2f22ee7a48c79a8e2556d66dbb8b5d1c5871f7e26deb7e1970e93d4422add8b12a6fa8aef381458af51a100e4572ab704329182eec2613d3fce4fd2971b5d  aha_0.4.6.1.orig.tar.gz"