aboutsummaryrefslogtreecommitdiffstats
path: root/community/innoextract/APKBUILD
blob: 5d4ae6911e3c141e047de853c9bc136e3e8a1990 (plain) (blame)
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
# Contributor: Michael Koloberdin <koloberdin@gmail.com>
# Maintainer: Michael Koloberdin <koloberdin@gmail.com>
pkgname=innoextract
pkgver=1.7
pkgrel=2
pkgdesc="A tool to extract installers created by Inno Setup"
url="http://constexpr.org/innoextract/"
arch="all"
license="zlib"
makedepends="cmake boost-dev xz-dev"
subpackages="$pkgname-doc"
source="http://constexpr.org/innoextract/files/$pkgname-$pkgver.tar.gz"

builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=Release .
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
	install -m644 CHANGELOG "$pkgdir"/usr/share/doc/$pkgname/CHANGELOG
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="5e92625a411a4351dd4639d4b63e8664519c6697122a0679c010412e94a1e5da95324c33be16211f91c2b25b8cea40fe4ba4da5e19c12d0c27a4916159465ca4  innoextract-1.7.tar.gz"