Date: Monday, September 2, 2019 @ 05:53:01
  Author: ffy00
Revision: 506553

archrelease: copy trunk to community-staging-x86_64

Added:
  d-mir-core/repos/community-staging-x86_64/
  d-mir-core/repos/community-staging-x86_64/PKGBUILD
    (from rev 506552, d-mir-core/trunk/PKGBUILD)

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

Copied: d-mir-core/repos/community-staging-x86_64/PKGBUILD (from rev 506552, 
d-mir-core/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-09-02 05:53:01 UTC (rev 506553)
@@ -0,0 +1,40 @@
+# Maintainer: Filipe Laíns (FFY00) <la...@archlinux.org>
+
+_pkgname=mir-core
+pkgname=d-$_pkgname
+pkgver=1.0.0
+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=('e17a4d68a7866e2dfdb6c4ba98c4b6326a5a12cb66a079310985321b6cef43d3d29e6903a24051851ee6f52658dc21a42b2a6fdadcd4b66cd46ba1074e8c9029')
+
+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
+}
+

Reply via email to