aboutsummaryrefslogtreecommitdiff
path: root/packages/APKBUILD
blob: 7eceb9fc8643d4c0ae213197342f3c689b4f31fa (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
46
# -*- sh -*-

# Contributor:
# Maintainer: Sébastien Gross <invalid@invalid.tld>

pkgname=squashfs-tools-ng
pkgver=1.0.3
pkgrel=0
pkgdesc="New set of tools for working with SquashFS images."
url="https://github.com/AgentD/squashfs-tools-ng"
arch="all"
license="GPL3"
depends="squashfs-tools"
makedepends="autoconf automake libtool m4 make gcc doxygen lzo-dev zstd-dev lz4-dev xz-dev zlib-dev libselinux-dev"
install=""
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="https://github.com/AgentD/squashfs-tools-ng/archive/v$pkgver/$pkgname-$pkgver.tar.gz"

build() {
    cd "$builddir"
    ./autogen.sh
    ./configure --prefix=/usr
    make
    make doxygen-doc
}

check() {
    cd "$builddir"
    make check
}

package() {
    cd "$builddir"
    make -j1 DESTDIR="$pkgdir" install
}

doc() {
    cd "$builddir"
    pkgdesc="$pkgname documemtation"
    default_doc
    install -d "$subpkgdir/usr/share/doc/$pkgname"
    cp -a doxygen-doc/* "$subpkgdir/usr/share/doc/$pkgname"

}

sha512sums="3d9a160421bd093daf6fa8a6730137d2c1fee8b8969176e540fa21e9f85ac936546a2011d6b469e7408fabad75627225ba747ca1173272eada8331b0735a93fd  squashfs-tools-ng-1.0.3.tar.gz"