[arch-commits] Commit in bsdiff/trunk (Makefile.patch PKGBUILD)

Kyle Keen kkeen at archlinux.org
Fri Jun 1 03:48:01 UTC 2018


    Date: Friday, June 1, 2018 @ 03:48:00
  Author: kkeen
Revision: 335381

upgpkg: bsdiff 4.3-9 BUILDINFO Rebuild

Modified:
  bsdiff/trunk/Makefile.patch
  bsdiff/trunk/PKGBUILD

----------------+
 Makefile.patch |    4 ++--
 PKGBUILD       |   23 +++++++++++++----------
 2 files changed, 15 insertions(+), 12 deletions(-)

Modified: Makefile.patch
===================================================================
--- Makefile.patch	2018-06-01 03:47:40 UTC (rev 335380)
+++ Makefile.patch	2018-06-01 03:48:00 UTC (rev 335381)
@@ -21,5 +21,5 @@
 -.endif
 +	${INSTALL_PROGRAM} bsdiff ${PREFIX}/bin/bsdiff
 +	${INSTALL_PROGRAM} bspatch ${PREFIX}/bin/bspatch
-+	${INSTALL_MAN} bsdiff.1 ${PREFIX}/man/man1/bsdiff.1
-+	${INSTALL_MAN} bspatch.1 ${PREFIX}/man/man1/bspatch.1
++	${INSTALL_MAN} bsdiff.1 ${PREFIX}/share/man/man1/bsdiff.1
++	${INSTALL_MAN} bspatch.1 ${PREFIX}/share/man/man1/bspatch.1

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-06-01 03:47:40 UTC (rev 335380)
+++ PKGBUILD	2018-06-01 03:48:00 UTC (rev 335381)
@@ -3,27 +3,30 @@
 
 pkgname=bsdiff
 pkgver=4.3
-pkgrel=8
+pkgrel=9
 pkgdesc="bsdiff and bspatch are tools for building and applying patches to binary files."
 url="http://www.daemonology.net/bsdiff/"
 license=('BSD')
 arch=('x86_64')
 depends=('bzip2')
-source=(http://www.daemonology.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
+source=("http://www.daemonology.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
 	Makefile.patch)
 md5sums=('e6d812394f0e0ecc8d5df255aa1db22a'
-         '87ec6120b2e2d38da5a67821af6ac356')
+         'f176d14d39c5784a2c824f6797544f4b')
 
+prepare() {
+  cd "$srcdir/${pkgname}-${pkgver}"
+  patch -p0 < ../Makefile.patch
+}
+
 build() {
-  cd "$srcdir"/${pkgname}-${pkgver}
-  patch -p0 < ../Makefile.patch
+  cd "$srcdir/${pkgname}-${pkgver}"
   make
 }
 
 package() {
-  cd "$srcdir"/${pkgname}-${pkgver}
-  make PREFIX="$pkgdir"/usr install
-  mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
-  mv "$pkgdir"/usr/man "$pkgdir"/usr/share/man/
-  head -n 26 bsdiff.c >"$pkgdir"/usr/share/licenses/$pkgname/license
+  cd "$srcdir/${pkgname}-${pkgver}"
+  make PREFIX="$pkgdir/usr" install
+  install -d "$pkgdir/usr/share/licenses/$pkgname"
+  head -n 26 bsdiff.c >"$pkgdir/usr/share/licenses/$pkgname/license"
 }



More information about the arch-commits mailing list