summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyril Levis2021-04-18 17:23:35 +0200
committerCyril Levis2021-04-18 17:23:35 +0200
commit94dc8742cd914453ad9706f1e64a3bd5fca00b2b (patch)
treebd9d324fcc5f608dd9fd5ed169fc54f8bda64426
parent85a21d0cd23ad70e78218254934a150497cdfffe (diff)
downloadaur-94dc8742cd914453ad9706f1e64a3bd5fca00b2b.tar.gz
upgpkg: webwormhole-git r195.1c8919c-2
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 6 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index efa711bb954..b0bfdfeafb0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = webwormhole-git
pkgdesc = WebWormhole creates ephemeral pipes between computers to send files or other data.
pkgver = r195.1c8919c
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/saljam/webwormhole
arch = x86_64
license = BSD
diff --git a/PKGBUILD b/PKGBUILD
index 1fcfee0df92..b89c0dea1ba 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=webwormhole-git
_pkgname=${pkgname%-git}
pkgver=r195.1c8919c
-pkgrel=1
+pkgrel=2
pkgdesc='WebWormhole creates ephemeral pipes between computers to send files or other data.'
arch=('x86_64')
url="https://github.com/saljam/${_pkgname}"
@@ -31,6 +31,7 @@ build() {
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-trimpath -mod=readonly -modcacherw"
GOOS=js GOARCH=wasm go build -o ./web/webwormhole.wasm ./web
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
GO111MODULE=on go build ./cmd/ww
@@ -38,6 +39,8 @@ build() {
package() {
install -D -m755 "${srcdir}/${_pkgname}/ww" "$pkgdir"/usr/bin/ww
- install -d -m755 "$pkgdir"/usr/share/webwormhole
+ install -d -m755 "${pkgdir}"/usr/share/webwormhole
cp -r "${srcdir}/${_pkgname}/web" "$pkgdir"/usr/share/webwormhole/web
+ install -d "${pkgdir}/usr/share/licenses/${_pkgname}"
+ install -m644 "${srcdir}/${_pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/"
}