summaryrefslogtreecommitdiff
path: root/packages/APKBUILD
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-11-02 11:33:44 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-11-02 11:49:44 +0100
commit072890e9b0ec5af1b28b3c1b213554c5b16ab50e (patch)
tree2d5eeb6bd59601516c9e3d39c93aa932e95a2267 /packages/APKBUILD
parent7c4b2a289cab34e4ec1b966663530a7babf08707 (diff)
Backport changes to package scripts
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'packages/APKBUILD')
-rw-r--r--packages/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/packages/APKBUILD b/packages/APKBUILD
new file mode 100644
index 0000000..92d95ee
--- /dev/null
+++ b/packages/APKBUILD
@@ -0,0 +1,46 @@
+# -*- sh -*-
+
+# 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"