Date: Tuesday, December 6, 2022 @ 18:44:54
Author: foutrelis
Revision: 1356871
archrelease: copy trunk to community-staging-x86_64
Added:
wake/repos/community-staging-x86_64/
wake/repos/community-staging-x86_64/PKGBUILD
(from rev 1356870, wake/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: wake/repos/community-staging-x86_64/PKGBUILD (from rev 1356870,
wake/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-12-06 18:44:54 UTC (rev 1356871)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Jiuyang Liu <[email protected]>
+
+shopt -s extglob
+
+pkgname=wake
+pkgver=0.21.0
+pkgrel=2
+pkgdesc="The SiFive wake build tool"
+arch=('x86_64')
+url="https://github.com/sifive/wake"
+license=('custom')
+depends=('dash' 'sqlite' 'gmp' 'fuse2' 'libutf8proc' 're2')
+makedepends=('clang')
+optdepends=('re2c: for flag support')
+source=("https://github.com/sifive/wake/releases/download/v$pkgver/wake_$pkgver.tar.xz")
+sha512sums=('5d49d680796a2682037ad311b0495f2f04a69dc90faba4458a1bb84a3d5c42e9014563e4b6a3e9600d50a2d4c3cbf5e60318266535c73453c08085015bd57f68')
+
+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/gcc_wake/gcc.wake
+ sed -i "s^releaseLFlags = (^releaseLFlags = (\"$(echo $LDFLAGS | sed 's/ /",
"/g')\", ^" share/wake/lib/gcc_wake/gcc.wake
+
+ # Build with clang to work around https://github.com/sifive/wake/issues/890
+ sed -i -e '/^CC\t/s/cc/clang/' -e '/^CXX\t/s/c++/clang++/' Makefile
+}
+
+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 LICENSE* -t "$pkgdir"/usr/share/licenses/wake/
+}