[arch-commits] Commit in wake/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Oct 20 14:47:22 UTC 2020
Date: Tuesday, October 20, 2020 @ 14:47:22
Author: felixonmars
Revision: 727613
add missing PKGBUILD
Added:
wake/trunk/PKGBUILD
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Added: PKGBUILD
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-10-20 14:47:22 UTC (rev 727613)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jiuyang Liu <liujiuyang1994 at gmail.com>
+
+shopt -s extglob
+
+pkgname=wake
+pkgver=0.19.1
+pkgrel=1
+pkgdesc="The SiFive wake build tool"
+arch=('x86_64')
+url="https://github.com/sifive/wake"
+license=('custom')
+depends=('dash' 'sqlite' 'gmp' 'fuse2' 'libutf8proc' 're2')
+optdepends=('re2c: for flag support')
+source=("https://github.com/sifive/wake/releases/download/v$pkgver/wake_$pkgver.tar.xz")
+sha512sums=('36f719ca2cb4962598134d31061c4f4aa4682c949b2794640354690d863444240e3549f341150fa76ce0d427e3a8b51fb569c2f87ef3107121f4693aedee9d0e')
+
+prepare() {
+ cd $pkgname-$pkgver
+ (cd utf8proc; rm !(utf8proc.wake))
+ sed -i 's|utf8proc/utf8proc.c ||;s|CORE_LDFLAGS := \$|CORE_LDFLAGS := $(shell pkg-config --silence-errors --libs libutf8proc) $|' Makefile
+ sed -i 's|"utf8proc"|"libutf8proc"|' utf8proc/utf8proc.wake
+ sed -i "s^releaseCFlags = (\"-Wall\", \"-O2^releaseCFlags = (\"$(echo $CFLAGS | sed 's/ /", "/g')^" share/wake/lib/system/gcc.wake
+ sed -i "s^releaseLFlags = (^releaseLFlags = (\"$(echo $LDFLAGS | sed 's/ /", "/g')\", ^" share/wake/lib/system/gcc.wake
+}
+
+build() {
+ cd $pkgname-$pkgver
+ make USE_FUSE_WAKE=0
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir/usr" install
+ mkdir -p "$pkgdir"/usr/share/licenses/wake
+ install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE* "$pkgdir"/usr/share/licenses/wake
+
+ rm -r "$pkgdir"/usr/build
+}
More information about the arch-commits
mailing list