[arch-commits] Commit in xz/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Pierre Schmitz pierre at gemini.archlinux.org
Fri Sep 17 09:46:56 UTC 2021


    Date: Friday, September 17, 2021 @ 09:46:55
  Author: pierre
Revision: 424286

archrelease: copy trunk to testing-x86_64

Added:
  xz/repos/testing-x86_64/
  xz/repos/testing-x86_64/PKGBUILD
    (from rev 424285, xz/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: xz/repos/testing-x86_64/PKGBUILD (from rev 424285, xz/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2021-09-17 09:46:55 UTC (rev 424286)
@@ -0,0 +1,38 @@
+# Maintainer: Pierre Schmitz <pierre at archlinux.de>
+# Contributor: François Charette <firmicus at gmx.net>
+
+pkgname=xz
+pkgver=5.2.5
+pkgrel=2
+pkgdesc='Library and command line tools for XZ and LZMA compressed files'
+arch=('x86_64')
+url='https://tukaani.org/xz/'
+license=('GPL' 'LGPL' 'custom')
+depends=('sh')
+source=("https://tukaani.org/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.sig})
+sha256sums=('f6f4910fd033078738bd82bfba4f49219d03b17eb0794eb91efbae419f4aba10'
+            'SKIP')
+validpgpkeys=('3690C240CE51B4670D30AD1C38EE757D69184620')
+
+build() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+
+	export CFLAGS="$CFLAGS -Wno-format-truncation"
+	./configure --prefix=/usr \
+		--disable-rpath \
+		--enable-werror
+	make
+}
+
+check() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	make check
+}
+
+package() {
+	cd "${srcdir}/${pkgname}-${pkgver}"
+	make DESTDIR="${pkgdir}" install
+	install -d -m755 "${pkgdir}/usr/share/licenses/xz/"
+	ln -sf /usr/share/doc/xz/COPYING "${pkgdir}/usr/share/licenses/xz/"
+	ln -sf /usr/share/licenses/common/GPL2/license.txt "${pkgdir}/usr/share/doc/xz/COPYING.GPLv2"
+}



More information about the arch-commits mailing list