[arch-commits] Commit in ddrescue/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Mon Mar 2 21:00:45 UTC 2020


    Date: Monday, March 2, 2020 @ 21:00:44
  Author: dvzrv
Revision: 376514

upgpkg: ddrescue 1.25-1: Upgrading to 1.25. Removing prepare() by providing CPPFLAGS, CXXFLAGS and LDFLAGS as parameters to the fake configure script. Minor cleanups.

Modified:
  ddrescue/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++------------------
 1 file changed, 9 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-02 20:07:50 UTC (rev 376513)
+++ PKGBUILD	2020-03-02 21:00:44 UTC (rev 376514)
@@ -1,34 +1,26 @@
-# Maintainer: David Runge <dave at sleepmap.de>
+# Maintainer: David Runge <dvzrv at archlinux.org>
 # Contributor: Ray Rashif <schiv at archlinux.org>
 # Contributor: Pierre Schmitz <pierre at archlinux.de>
 # Contributor: Paul Mattal <paul at archlinux.org>
 
 pkgname=ddrescue
-pkgver=1.24
-pkgrel=2
+pkgver=1.25
+pkgrel=1
 pkgdesc="GNU data recovery tool"
 arch=('x86_64')
 url="https://www.gnu.org/software/ddrescue/ddrescue.html"
 license=('GPL3')
-depends=('gcc-libs')
-source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.lz"
-        "https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.lz.sig")
-sha256sums=('4b5d3feede70e3657ca6b3c7844f23131851cbb6af0cecc9721500f7d7021087'
+depends=('gcc-libs' 'glibc')
+source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.lz"{,.sig})
+sha512sums=('90e344a618e385730836218817588f6854db6d1acdf357bf60bdba04c76382e73041dfc367ba4de60062992ee74b2da58417f6e464ffbeed10ec89fac110f4b8'
             'SKIP')
 validpgpkeys=('1D41C14B272A2219A739FA4F8FE99503132D7742') # Antonio Diaz Diaz
 
-prepare() {
-  cd $pkgname-$pkgver
-  # remove hardcoded makeflag overrides
-  sed -e '/CPPFLAGS=/d' \
-      -e '/CXXFLAGS=/d' \
-      -e '/LDFLAGS=/d' \
-      -i configure
-}
-
 build() {
   cd $pkgname-$pkgver
-  ./configure --prefix=/usr
+  # fake configure script reinvents autotools and requires custom parameters to
+  # set CPPFLAGS, CXXFLAGS and LDFLAGS
+  ./configure --prefix=/usr CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}"
   make
 }
 
@@ -37,5 +29,4 @@
   make DESTDIR="$pkgdir" install install-man
   install -vDm 644 {AUTHORS,ChangeLog,NEWS,README} \
     -t "${pkgdir}/usr/share/doc/${pkgname}"
-#  rm "$pkgdir"/usr/share/info/dir
 }



More information about the arch-commits mailing list