# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=lha
pkgver=1.14i
pkgrel=2
pkgdesc="Compression and archive utility for LH-7 format archives"
url="http://www.infor.kanazawa-it.ac.jp/~ishii/lhaunix/"
arch="all"
license="custom"
subpackages="$pkgname-doc"
depends=""
makedepends=""
install=
source="http://osdn.dl.sourceforge.jp/lha/22231/$pkgname-$pkgver-ac20050924p1.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver-ac20050924p1"
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make "DESTDIR=$pkgdir" install
	#install -D -m755 $srcdir/lha $pkgdir/usr/bin/lha
}

sha512sums="efe43d407d273f8f724f7b205223bd122c76adac4b67ad5e9811e88cae03f1f3c3af4297aa6f24951a02558975bbafacf697e97ab0da578b4e0115b89237566f  lha-1.14i-ac20050924p1.tar.gz"
