[arch-commits] Commit in d-mir-core/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Wed Feb 13 23:05:13 UTC 2019


    Date: Wednesday, February 13, 2019 @ 23:05:13
  Author: ffy00
Revision: 432134

upgpkg: d-mir-core 0.2.1-1

Added:
  d-mir-core/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-02-13 23:05:13 UTC (rev 432134)
@@ -0,0 +1,40 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=mir-core
+pkgname=d-$_pkgname
+pkgver=0.2.1
+pkgrel=1
+pkgdesc='Base software building blocks and conventions for libmir'
+arch=('x86_64')
+url='https://github.com/libmir/mir-core'
+license=('custom:BSL')
+depends=('liblphobos')
+makedepends=('meson' 'ldc')
+source=("$_pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('26d1ef401118cd9da069dd45a2e6717974c0de48a12cac4b2c44400962ae10a39180f4606c73dde0d06cee31af034c1d5f9f7ba09a88e775b12836ee0f24eaac')
+
+build() {
+  mkdir $_pkgname-$pkgver/build
+  cd $_pkgname-$pkgver/build
+
+  export DC=ldc
+
+  arch-meson ..
+
+  ninja
+}
+
+check() {
+  cd $_pkgname-$pkgver/build
+
+  meson test
+}
+
+package() {
+  cd $_pkgname-$pkgver/build
+
+  DESTDIR="$pkgdir" ninja install
+
+  install -Dm 644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+



More information about the arch-commits mailing list