[arch-commits] Commit in ponyc/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Thu Sep 27 22:08:18 UTC 2018


    Date: Thursday, September 27, 2018 @ 22:08:18
  Author: foutrelis
Revision: 386770

archrelease: copy trunk to community-staging-x86_64

Added:
  ponyc/repos/community-staging-x86_64/
  ponyc/repos/community-staging-x86_64/PKGBUILD
    (from rev 386769, ponyc/trunk/PKGBUILD)

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

Copied: ponyc/repos/community-staging-x86_64/PKGBUILD (from rev 386769, ponyc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-09-27 22:08:18 UTC (rev 386770)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=ponyc
+pkgver=0.24.4
+pkgrel=2
+pkgdesc='An actor model, capabilities, high performance programming language'
+url='http://ponylang.org/'
+arch=('x86_64')
+license=('BSD')
+depends=('llvm6-libs')
+makedepends=('llvm6')
+checkdepends=('pcre2')
+options=('!strip')
+optdepends=('pcre2: Needed for the regex package')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ponylang/ponyc/archive/$pkgver.tar.gz")
+sha512sums=('2e89cc44c3b5449b203e9d2c3669578a63177978523964776079ec0ebb7e706a7eeff2c7d64a814faaaac6e847fd18dc613edb693c5710d9ac89b6ce5dc00d5a')
+
+prepare() {
+  cd ponyc-$pkgver
+  sed -i 's/-Werror //' Makefile
+}
+
+build() {
+  cd ponyc-$pkgver
+  make config=release prefix=/usr arch=x86-64 verbose= default_pic=true default_ssl=openssl_1.1.0
+
+  mkdir docs
+  build/release/ponyc packages/stdlib -rexpr -g -o docs
+}
+
+check() {
+  cd ponyc-$pkgver
+  make config=release prefix=/usr arch=x86-64 verbose= default_pic=true default_ssl=openssl_1.1.0 test
+}
+
+package() {
+  cd ponyc-$pkgver
+  make config=release prefix=/usr arch=x86-64 verbose= default_pic=true default_ssl=openssl_1.1.0 ponydir=/usr/lib/pony/"$pkgver" DESTDIR="$pkgdir" install
+
+  # Ponyc is designed to read its standard packages from the same directory.
+  install -dm755 "$pkgdir"/usr/bin
+  ln -sf /usr/lib/pony/"$pkgver"/bin/ponyc "$pkgdir"/usr/bin
+
+  # Let's include the examples as documentation is scarce.
+  install -dm755 "$pkgdir"/usr/share/doc/pony
+  cp -dr --no-preserve=ownership examples "$pkgdir"/usr/share/doc/pony
+
+  cp -dr docs/* "$pkgdir"/usr/share/doc/pony
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
+}



More information about the arch-commits mailing list