aboutsummaryrefslogtreecommitdiffstats
path: root/main/cabextract/APKBUILD
blob: 7933d58d1666c515d8079a57699c86e733868163 (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
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=cabextract
pkgver=1.4
pkgrel=0
pkgdesc="Tool for extracting Microsoft cabinet files"
url="http://www.cabextract.org.uk/"
arch="all"
license="GPL"
subpackages="$pkgname-doc"
depends=""
makedepends=""
install=
source="http://www.cabextract.org.uk/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/${pkgname}-${pkgver}

prepare() {
	cd $_builddir
	return 0
}

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
}

md5sums="79f41f568cf1a3ac105e0687e8bfb7c0  cabextract-1.4.tar.gz"