aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorSébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>2020-10-02 11:16:51 +0200
committerDavid Oberhollenzer <goliath@infraroot.at>2020-10-02 23:00:07 +0200
commitb06b42406e12fb69678ae1d83a3bc5877484e8ef (patch)
treee6ca40ddb424d47d1ab2ddd652e00d8e8f9b3665 /packages
parent86895b8d3e035705d143ceda76c8e8907728d714 (diff)
PKG: add PKGBUILD to build Archlinux package
Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
Diffstat (limited to 'packages')
-rw-r--r--packages/PKGBUILD93
1 files changed, 93 insertions, 0 deletions
diff --git a/packages/PKGBUILD b/packages/PKGBUILD
new file mode 100644
index 0000000..d4b2311
--- /dev/null
+++ b/packages/PKGBUILD
@@ -0,0 +1,93 @@
+# -*- sh -*-
+
+# Build squashfs-tools-ng for Archlinux.
+#
+# How to build package for Archlinux:
+#
+# sudo pacman -S --noconfirm fakeroot binutils
+# makepkg --noconfirm -Cfsir PKGBUILD
+#
+# Check result with
+#
+# namcap -i squashfs-tools-*.pkg.tar.zst PKGBUILD
+#
+
+# Maintainer: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
+# Contributor:
+
+pkgname=('squashfs-tools-ng' 'squashfs-tools-ng-doc')
+pkgver=1.0.2
+pkgrel=1
+epoch=
+pkgdesc="New set of tools for working with SquashFS images."
+url="https://github.com/AgentD/squashfs-tools-ng"
+license=('GPL3')
+arch=('x86_64')
+groups=()
+makedepends=(
+ 'fakeroot'
+ 'binutils'
+ 'autoconf'
+ 'automake'
+ 'autogen'
+ 'libtool'
+ 'm4'
+ 'make'
+ 'gcc'
+ 'doxygen')
+#
+depends=('zstd' 'lzo' 'attr')
+checkdepends=()
+optdepends=('squashfs-tools')
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=("https://github.com/AgentD/squashfs-tools-ng/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+noextract=()
+
+## Generated using: makepkg -g PKGBUILD
+md5sums=('7e78c57513d58e374afc60c000032fa7')
+sha1sums=('a50a7d2aa31b71b22de4297e23e5f68e5fc8c0e1')
+sha224sums=('43abdd9552b3872380387b5dadfd44e8e7dbd8cab1772bef83dea7b7')
+sha256sums=('5eb0e3faaba6cef92e0c03b13b9965e744d8eb5291db5b118970d4c34eeaec8c')
+sha384sums=('47f589f7b6c82d39c404e67888045beca5062b595766b294d337ea0c8e026d063b58b7b4e83fd81cea0ea48fec1c2545')
+sha512sums=('409cec3c932ad0653958746b07371ce19979cd53f9f38482243bc425a08ca62c79c5560a03c0c7d0560bb04234dab7a94a60bbe1a1ed7497f3afcec744e2fda6')
+b2sums=('c2a48909dd9cac89a45cc468735b24f842a8466629ad75f523c1db736fe51036c96bcb46a2b351aa24753028a88ea5efa56aab3ca87efdd339e6d58a0b92abd9')
+
+validpgpkeys=()
+
+prepare() {
+ cd "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ ./autogen.sh
+ ./configure --prefix=/usr
+ make
+ make doxygen-doc
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ make -k check
+}
+
+package_squashfs-tools-ng() {
+ #depends=('zstd' 'attr' 'zlib' 'xz' 'lzo' )
+ cd "$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+}
+
+package_squashfs-tools-ng-doc() {
+ arch=('any')
+ optdepend=()
+ depends=()
+ cd "$pkgbase-$pkgver"
+ install -d "$pkgdir/usr/share/doc/$pkgbase"
+ cp -a doxygen-doc/* "$pkgdir/usr/share/doc/$pkgbase"
+}