diff options
author | Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org> | 2020-10-02 11:16:12 +0200 |
---|---|---|
committer | David Oberhollenzer <goliath@infraroot.at> | 2020-10-02 23:00:07 +0200 |
commit | 86895b8d3e035705d143ceda76c8e8907728d714 (patch) | |
tree | eb1425670d5e68a630bd0671ef442a74521b0b7d /packages/APKBUILD | |
parent | 6039a648c64bf0a0ae7cb07da1fc2cc84eb82ae4 (diff) |
APK: add APKBUILD to build Alpine package
Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
Diffstat (limited to 'packages/APKBUILD')
-rw-r--r-- | packages/APKBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/packages/APKBUILD b/packages/APKBUILD new file mode 100644 index 0000000..03c1f3e --- /dev/null +++ b/packages/APKBUILD @@ -0,0 +1,54 @@ +# -*- sh -*- + +# adduser pkg-builder +# addgroup pkg-builder abuild +# echo '%abuild ALL=(ALL) NOPASSWD:/sbin/apk, /bin/mkdir -p /etc/apk/keys, /bin/cp -i *.pub /etc/apk/keys/' > /etc/sudoers.d/abuild +# chmod 0400 /etc/sudoers.d/abuild +# apk add alpine-sdk +# +# abuild-keygen -nai +# abuild -r + +# Contributor: +# Maintainer: Sébastien Gross <invalid@invalid.tld> +pkgname=squashfs-tools-ng +pkgver=1.0.2 +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="409cec3c932ad0653958746b07371ce19979cd53f9f38482243bc425a08ca62c79c5560a03c0c7d0560bb04234dab7a94a60bbe1a1ed7497f3afcec744e2fda6 squashfs-tools-ng-1.0.2.tar.gz" |