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

Jan de Groot jgc at archlinux.org
Sun Dec 3 22:51:35 UTC 2017


    Date: Sunday, December 3, 2017 @ 22:51:35
  Author: jgc
Revision: 311591

Switch to https and sha256sums. Move patches to prepare()
upgpkg: mcpp 2.7.2-6

Modified:
  mcpp/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-03 22:47:29 UTC (rev 311590)
+++ PKGBUILD	2017-12-03 22:51:35 UTC (rev 311591)
@@ -1,32 +1,36 @@
 # $Id$
-# Maintainer: Alexander Baldeck <alexander at archlinux.org>
-# Contributor: Jan de Groot <jgc at archlinux.org>
+# Contributor: Alexander Baldeck <alexander at archlinux.org>
+# Maintainer: Jan de Groot <jgc at archlinux.org>
 
 pkgname=mcpp
 pkgver=2.7.2
-pkgrel=5
+pkgrel=6
 pkgdesc="Matsui's CPP implementation precisely conformed to standards"
 arch=('x86_64')
 license=('custom')
 url="http://mcpp.sourceforge.net"
 depends=('glibc')
-source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
+source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
         namlen.patch
         fs28284.patch)
-md5sums=('512de48c87ab023a69250edc7a0c7b05'
-         '0bfc6177a58e912a9e23e368578dd3fe'
-         'ba668fc6996e538f2e0c096f9eb282ce')
+sha256sums=('3b9b4421888519876c4fc68ade324a3bbd81ceeb7092ecdbbc2055099fcb8864'
+            'ee8bf97c42150d2424a5984baec8227a44538e15c23cec93aabfc65daf9a6081'
+            '27e42d8cae06327370cf0f9a8118d23a2f9368b87f24b38a9cb9c0c4eaeadb4e')
 
+prepare() {
+  cd $pkgname-$pkgver
+  patch -Np1 -i ../namlen.patch
+  patch -Np1 -i ../fs28284.patch
+}
+
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  patch -Np1 -i "${srcdir}/namlen.patch"
-  patch -Np1 -i "${srcdir}/fs28284.patch"
+  cd $pkgname-$pkgver
   ./configure --prefix=/usr --enable-mcpplib --disable-static
   make
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd $pkgname-$pkgver
   make DESTDIR="${pkgdir}" install
 
   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"



More information about the arch-commits mailing list