blob: 0857ebab3494d07c3d25dfafa0f8e5b349d58975 (
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
|
# Contributor: Michael Koloberdin <koloberdin@gmail.com>
# Maintainer: Michael Koloberdin <koloberdin@gmail.com>
pkgname=innoextract
pkgver=1.5
pkgrel=0
pkgdesc="A tool to extract installers created by Inno Setup"
url="http://constexpr.org/innoextract/"
arch="all"
license="ZLIB"
depends="boost xz"
depends_dev="cmake boost-dev xz-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://constexpr.org/innoextract/files/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
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"
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=Release . || return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md || return 1
install -m644 CHANGELOG "$pkgdir"/usr/share/doc/$pkgname/CHANGELOG || return 1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1
}
md5sums="86dc2061e86df5ae8872cb7deacfcaf5 innoextract-1.5.tar.gz"
sha256sums="f2594e992ccf2859455475794803b29a67393fadb69d4df1eec34c451ffa48cf innoextract-1.5.tar.gz"
sha512sums="759c319c1f0737b9120ed4613bcab4bebcbb28749d9bbfa46ccb7b4f7640352b4ef01a03ed142c61f67188a83635d4e03e7b0708b913e1f47c09e5189bb56dd6 innoextract-1.5.tar.gz"
|