[arch-commits] Commit in d-containers/trunk (PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Sun Nov 4 17:03:42 UTC 2018
Date: Sunday, November 4, 2018 @ 17:03:41
Author: ffy00
Revision: 401481
force build with LDC
Modified:
d-containers/trunk/PKGBUILD
----------+
PKGBUILD | 36 +++++++++++++++++++++---------------
1 file changed, 21 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-11-04 16:46:53 UTC (rev 401480)
+++ PKGBUILD 2018-11-04 17:03:41 UTC (rev 401481)
@@ -1,29 +1,35 @@
# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
pkgname=d-containers
+_pkgname=containers
_pkgver=0.8.0-alpha.10
pkgver=${_pkgver/-/}
pkgrel=1
-pkgdesc="Containers for D backed by std.experimental.allocator"
-arch=(x86_64)
-url="https://github.com/dlang-community"
-license=(Boost)
-depends=(liblphobos)
-makedepends=(ldc meson d-stdx-allocator)
-source=($pkgname-$pkgver.tar.gz::"https://github.com/dlang-community/containers/archive/v$_pkgver.tar.gz")
-sha256sums=('40210406e4439c4145c951a24b8475af47fe981e0a95122db05d6eff3cce7561')
+pkgdesc='Containers for D backed by std.experimental.allocator'
+arch=('x86_64')
+url='https://github.com/dlang-community/containers'
+license=('Boost')
+depends=('liblphobos')
+makedepends=('meson' 'ldc' 'd-stdx-allocator')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$_pkgver.tar.gz")
+sha512sums=('dd5a119aa542e0fa9c48f2a25c6d53f1fd366a5dfde4e9576f7f86a710f669d9c8195e927035f3977aaf48b9b7ae8222f8ba6250c6ecb8780684b794afc7af32')
-prepare() {
- mkdir -p build
-}
+build() {
+ mkdir -p $_pkgname-$_pkgver/build
+ cd $_pkgname-$_pkgver/build
-build() {
- cd build
- meson ../containers-$_pkgver --prefix=/usr
+ # Force build with LDC
+ export DC=ldc
+
+ arch-meson ..
+
ninja
}
package() {
- cd build
+ cd $_pkgname-$_ppkgver/build
+
DESTDIR="$pkgdir" ninja install
}
+
More information about the arch-commits
mailing list