Date: Tuesday, July 19, 2022 @ 04:21:24 Author: grawlinson Revision: 1254524
archrelease: copy trunk to community-x86_64 Added: zk/repos/community-x86_64/PKGBUILD (from rev 1254523, zk/trunk/PKGBUILD) Deleted: zk/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 138 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 69 insertions(+), 69 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-07-19 04:20:16 UTC (rev 1254523) +++ PKGBUILD 2022-07-19 04:21:24 UTC (rev 1254524) @@ -1,69 +0,0 @@ -# Maintainer: George Rawlinson <grawlin...@archlinux.org> -# Contributor: Nogweii <m...@nogweii.net> - -pkgname=zk -pkgver=0.11.0 -pkgrel=1 -pkgdesc='A command-line tool helping you to maintain a Zettelkasten or personal wiki' -arch=('x86_64') -url='https://github.com/mickael-menu/zk' -license=('GPL3') -depends=('glibc') -makedepends=('git' 'go') -options=('!lto') -_commit='eefc3be9c600020fb59a39d5c01cb6ba09a6353a' -source=("$pkgname::git+$url.git#commit=$_commit") -md5sums=('SKIP') - -pkgver() { - cd "$pkgname" - - git describe --tags | sed 's/^v//' -} - -prepare() { - cd "$pkgname" - - # create directory for build output - mkdir build - - # download dependencies - go mod download -} - -build() { - cd "$pkgname" - - # set Go flags - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - - go build -v \ - -trimpath \ - -buildmode=pie \ - -mod=readonly \ - -modcacherw \ - -ldflags "-linkmode external -extldflags $LDFLAGS \ - -X main.Version=$(git describe --tags HEAD) \ - -X main.Build=$(git rev-parse --short HEAD)" \ - -tags "fts5" \ - -o build \ - . -} - -check() { - cd "$pkgname" - go test -v -race -tags "fts5" ./... -} - -package() { - cd "$pkgname" - - # binary - install -vDm755 -t "$pkgdir/usr/bin" build/zk - - # documentation - install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" *.md - cp -vr docs "$pkgdir/usr/share/doc/$pkgname" -} Copied: zk/repos/community-x86_64/PKGBUILD (from rev 1254523, zk/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-07-19 04:21:24 UTC (rev 1254524) @@ -0,0 +1,69 @@ +# Maintainer: George Rawlinson <grawlin...@archlinux.org> +# Contributor: Nogweii <m...@nogweii.net> + +pkgname=zk +pkgver=0.11.1 +pkgrel=1 +pkgdesc='A command-line tool helping you to maintain a Zettelkasten or personal wiki' +arch=('x86_64') +url='https://github.com/mickael-menu/zk' +license=('GPL3') +depends=('glibc') +makedepends=('git' 'go') +options=('!lto') +_commit='78c40eeecfd31f11b5990ec306e17dd249384006' +source=("$pkgname::git+$url.git#commit=$_commit") +md5sums=('SKIP') + +pkgver() { + cd "$pkgname" + + git describe --tags | sed 's/^v//' +} + +prepare() { + cd "$pkgname" + + # create directory for build output + mkdir build + + # download dependencies + go mod download +} + +build() { + cd "$pkgname" + + # set Go flags + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + + go build -v \ + -trimpath \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -ldflags "-linkmode external -extldflags $LDFLAGS \ + -X main.Version=$(git describe --tags HEAD) \ + -X main.Build=$(git rev-parse --short HEAD)" \ + -tags "fts5" \ + -o build \ + . +} + +check() { + cd "$pkgname" + go test -v -race -tags "fts5" ./... +} + +package() { + cd "$pkgname" + + # binary + install -vDm755 -t "$pkgdir/usr/bin" build/zk + + # documentation + install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" *.md + cp -vr docs "$pkgdir/usr/share/doc/$pkgname" +}