[arch-commits] Commit in d-stdx-allocator/trunk (PKGBUILD)

Dan Printzell wild at archlinux.org
Sun Apr 14 14:41:17 UTC 2019


    Date: Sunday, April 14, 2019 @ 14:41:16
  Author: wild
Revision: 451627

upgpkg: d-stdx-allocator 3.0.2-3

Rebuilt against new ldc and added dependency patch

Modified:
  d-stdx-allocator/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++++++++--------
 1 file changed, 16 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-14 14:39:51 UTC (rev 451626)
+++ PKGBUILD	2019-04-14 14:41:16 UTC (rev 451627)
@@ -1,9 +1,9 @@
 # Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
 
+pkgname=d-stdx-allocator
 _pkgname=stdx-allocator
-pkgname=d-$_pkgname
 pkgver=3.0.2
-pkgrel=2
+pkgrel=3
 pkgdesc='Extracted std.experimental.allocator'
 arch=('x86_64')
 url='https://github.com/dlang-community/stdx-allocator'
@@ -10,12 +10,20 @@
 license=('Boost')
 depends=('liblphobos' 'd-mir-core')
 makedepends=('meson' 'ldc')
-source=("$_pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha512sums=('f4dc887225926cc4530314976e5e236c696a54c6e2ccdb48271b97b0c0a70882b70e92768c94c2932ccc9bd2282c3e953b27cf72088904458f7fc15234dca4be')
+source=("$_pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
+        "add-dependency.patch::https://github.com/dlang-community/stdx-allocator/commit/676b4c782ba9c484864075508c27ef44399396f7.patch")
+sha512sums=('f4dc887225926cc4530314976e5e236c696a54c6e2ccdb48271b97b0c0a70882b70e92768c94c2932ccc9bd2282c3e953b27cf72088904458f7fc15234dca4be'
+            '13d52d3bb4d90e7b5fb3163f1761c20a57a59be1306ac665fea0eb9331864821d77e790f8ca6027b1936a6930085d2ccca7a1d49d4bd139a939e2c58f03bd47a')
 
+prepare() {
+  cd "$srcdir"/$_pkgname-$pkgver
+
+  patch -p1 < "$srcdir"/add-dependency.patch
+}
+
 build() {
-  mkdir $_pkgname-$pkgver/build
-  cd $_pkgname-$pkgver/build
+  mkdir "$srcdir"/$_pkgname-$pkgver/build
+  cd "$srcdir"/$_pkgname-$pkgver/build
 
   export DC=ldc
 
@@ -25,13 +33,13 @@
 }
 
 check() {
-  cd $_pkgname-$pkgver/build
+  cd "$srcdir"/$_pkgname-$pkgver/build
 
   meson test
 }
 
 package() {
-  cd $_pkgname-$pkgver/build
+  cd "$srcdir"/$_pkgname-$pkgver/build
 
   DESTDIR="$pkgdir" ninja install
 }



More information about the arch-commits mailing list