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

Filipe Laíns ffy00 at archlinux.org
Mon Sep 24 16:20:30 UTC 2018


    Date: Monday, September 24, 2018 @ 16:20:29
  Author: ffy00
Revision: 384634

use LDC to build

Modified:
  d-stdx-allocator/trunk/PKGBUILD

----------+
 PKGBUILD |   36 ++++++++++++++++++++----------------
 1 file changed, 20 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-09-24 15:52:03 UTC (rev 384633)
+++ PKGBUILD	2018-09-24 16:20:29 UTC (rev 384634)
@@ -1,28 +1,32 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
 
 pkgname=d-stdx-allocator
+_pkgname=stdx-allocator
 pkgver=2.77.3
-pkgrel=1
-pkgdesc="Extracted std.experimental.allocator for usage via DUB"
-arch=(x86_64)
-url="https://github.com/dlang-community"
-license=(Boost)
-depends=(libphobos)
-makedepends=(dmd meson)
-source=($pkgname-$pkgver.tar.gz::"https://github.com/dlang-community/stdx-allocator/archive/v$pkgver.tar.gz")
+pkgrel=2
+pkgdesc='Extracted std.experimental.allocator'
+arch=('x86_64')
+url='https://github.com/dlang-community/stdx-allocator'
+license=('Boost')
+depends=('liblphobos')
+makedepends=('meson' 'ldc' 'python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
 sha256sums=('cf558f19bffe555c4f022ab2090b9ad46086eb1dfe7be02cd9fa7451d1b857a6')
 
-prepare() {
-  mkdir -p build
-}
+build() {
+  mkdir $_pkgname-$pkgver/build
+  cd $_pkgname-$pkgver/build
 
-build() {
-  cd build
-  meson ../stdx-allocator-$pkgver --prefix=/usr
+  export DC=ldc
+
+  arch-meson
+
   ninja
 }
 
 package() {
-  cd build
+  cd $_pkgname-$pkgver/build
+
   DESTDIR="$pkgdir" ninja install
 }
+



More information about the arch-commits mailing list