[arch-commits] Commit in squashfs-tools/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Fri Feb 11 20:22:35 UTC 2022
Date: Friday, February 11, 2022 @ 20:22:35
Author: dvzrv
Revision: 436946
upgpkg: squashfs-tools 4.5-2: Rebuild to add documentation
Add documentation files:
https://bugs.archlinux.org/task/73294
Add debug package.
Simplify calls to make.
Drop unnecessary quotes and curly braces.
Modified:
squashfs-tools/trunk/PKGBUILD
----------+
PKGBUILD | 27 +++++++++++----------------
1 file changed, 11 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-11 20:21:04 UTC (rev 436945)
+++ PKGBUILD 2022-02-11 20:22:35 UTC (rev 436946)
@@ -6,13 +6,13 @@
pkgname=squashfs-tools
pkgver=4.5
-pkgrel=1
-pkgdesc="Tools for squashfs, a highly compressed read-only filesystem for Linux."
+pkgrel=2
+pkgdesc="Tools for squashfs, a highly compressed read-only filesystem for Linux"
+arch=(x86_64)
url="https://github.com/plougher/squashfs-tools"
-license=('GPL2')
-arch=('x86_64')
-depends=('lz4' 'lzo' 'xz' 'zlib' 'zstd')
-source=("https://github.com/plougher/squashfs-tools#tag=${pkgver/_/-}")
+license=(GPL2)
+depends=(lz4 lzo xz zlib zstd)
+options=(debug)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/plougher/${pkgname}/archive/refs/tags/${pkgver}.tar.gz"
"${pkgname}-4.5-symlink_install.patch")
sha512sums=('e00610487d24eed9e5dadcf84014a3d7faa9815d8ce00fd4660e6c8ce394dccf185ed9f387f4fa1313b9812fe770f802bdcbaef87887f2bcefacf234594a72e0'
@@ -21,22 +21,17 @@
'd19e07109630eb10952630611a0ebdc1349585a89bed29341c9b7a623e7d165e3c047332396edd4ababe3516010289e2743e8dc09be733f464e216fffd09036e')
prepare() {
- cd ${pkgname}-${pkgver}
+ cd $pkgname-$pkgver
# fix the creation of symlinks in install target
- patch -Np1 -i "../${pkgname}-4.5-symlink_install.patch"
+ patch -Np1 -i "../$pkgname-4.5-symlink_install.patch"
}
build() {
- make -C ${pkgname}-${pkgver}/${pkgname} \
- GZIP_SUPPORT=1 \
- XZ_SUPPORT=1 \
- LZO_SUPPORT=1 \
- LZMA_XZ_SUPPORT=1 \
- LZ4_SUPPORT=1 \
- ZSTD_SUPPORT=1 \
- XATTR_SUPPORT=1
+ local _params=(GZIP_SUPPORT=1 XZ_SUPPORT=1 LZO_SUPPORT=1 LZMA_XZ_SUPPORT=1 LZ4_SUPPORT=1 ZSTD_SUPPORT=1 XATTR_SUPPORT=1)
+ make ${_params[@]} -C $pkgname-$pkgver/$pkgname
}
package() {
make -C ${pkgname}-${pkgver}/${pkgname} install INSTALL_DIR="${pkgdir}/usr/bin"
+ install -vDm 644 $pkgname-$pkgver/{ACTIONS-README,CHANGES,USAGE} $pkgname-$pkgver/README-$pkgver -t "$pkgdir/usr/share/doc/$pkgname/"
}
More information about the arch-commits
mailing list