[arch-commits] Commit in ponyc/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Thu Apr 16 01:58:29 UTC 2020
Date: Thursday, April 16, 2020 @ 01:58:28
Author: foutrelis
Revision: 615113
archrelease: copy trunk to community-testing-x86_64
Added:
ponyc/repos/community-testing-x86_64/
ponyc/repos/community-testing-x86_64/PKGBUILD
(from rev 615112, ponyc/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: ponyc/repos/community-testing-x86_64/PKGBUILD (from rev 615112, ponyc/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2020-04-16 01:58:28 UTC (rev 615113)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=ponyc
+pkgver=0.33.2
+pkgrel=2
+pkgdesc='An actor model, capabilities, high performance programming language'
+url='https://ponylang.org/'
+arch=('x86_64')
+license=('BSD')
+depends=('llvm9-libs')
+makedepends=('llvm9')
+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=('cc02bdac029325689fbe7a5c9e8c9f8a8adf9346e17a6c626c9eca8dcae110c3cf4fb9af348b603e9804dff97183e02687f092d76b62e4bb13e571cd1c7585e8')
+
+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 link=llvm-dynamic
+
+ 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 link=llvm-dynamic test
+}
+
+package() {
+ cd ponyc-$pkgver
+ make config=release prefix=/usr arch=x86-64 verbose= default_pic=true default_ssl=openssl_1.1.0 link=llvm-dynamic 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