Date: Tuesday, April 4, 2023 @ 22:33:55
Author: grawlinson
Revision: 1435258
archrelease: copy trunk to community-x86_64
Added:
gum/repos/community-x86_64/PKGBUILD
(from rev 1435257, gum/trunk/PKGBUILD)
Deleted:
gum/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 185 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 93 insertions(+), 92 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-04 22:32:59 UTC (rev 1435257)
+++ PKGBUILD 2023-04-04 22:33:55 UTC (rev 1435258)
@@ -1,92 +0,0 @@
-# Maintainer: George Rawlinson <[email protected]>
-
-pkgname=gum
-pkgver=0.9.0
-pkgrel=2
-pkgdesc='A tool for glamorous shell scripts'
-arch=('x86_64')
-url='https://github.com/charmbracelet/gum'
-license=('MIT')
-depends=('glibc')
-makedepends=('git' 'go')
-options=('!lto')
-_commit='832c4fc917a0d247a65887940117ba848ad474f5'
-source=("$pkgname::git+$url#commit=$_commit")
-b2sums=('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}"
- export GOPATH="${srcdir}"
-
- # commit date for binary & man page
- local _commit_date=$(git show --no-patch --format=%cd --date=format:%Y-%m-%d)
-
- go build -v \
- -buildmode=pie \
- -mod=readonly \
- -modcacherw \
- -ldflags "-compressdwarf=false \
- -linkmode external \
- -extldflags ${LDFLAGS} \
- -X main.Version=$pkgver \
- -X main.CommitSHA=$_commit \
- -X main.CommitDate=$_commit_date" \
- -o build \
- .
-
- # man page
- ./build/gum man > build/gum.1
-
- # i'm not 100% sure where the man sub-command gets the date from, i assume
- # it uses $TODAYS_DATE, so this should make the man page reproducible
- sed \
- -i build/gum.1 \
- -e "s/\"[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\"/\"$_commit_date\"/"
-
- # completions
- for shell in bash fish zsh; do
- ./build/gum completion "$shell" > "build/$shell-completion"
- done
-}
-
-package() {
- cd "$pkgname"
-
- # binary
- install -vDm755 -t "$pkgdir/usr/bin" build/gum
-
- # documentation
- install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
-
- # man pages
- install -vDm644 -t "$pkgdir/usr/share/man/man1" build/gum.1
-
- # completions
- install -vDm644 build/bash-completion
"$pkgdir/usr/share/bash-completion/completions/gum"
- install -vDm644 build/fish-completion
"$pkgdir/usr/share/fish/vendor_completions.d/gum.fish"
- install -vDm644 build/zsh-completion
"$pkgdir/usr/share/zsh/site-functions/_gum"
-
- # license
- install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
-}
Copied: gum/repos/community-x86_64/PKGBUILD (from rev 1435257,
gum/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-04-04 22:33:55 UTC (rev 1435258)
@@ -0,0 +1,93 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=gum
+pkgver=0.10.0
+pkgrel=1
+pkgdesc='A tool for glamorous shell scripts'
+arch=('x86_64')
+url='https://github.com/charmbracelet/gum'
+license=('MIT')
+depends=('glibc')
+makedepends=('git' 'go')
+options=('!lto')
+_commit='0f0f8e91899ac7a7aa2996623f979dfe6bbc5940'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+ cd "$pkgname"
+
+ # create directory for build output
+ mkdir build
+
+ # download dependencies
+ export GOPATH="${srcdir}"
+ go mod download
+}
+
+build() {
+ cd "$pkgname"
+
+ # set Go flags
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export GOPATH="${srcdir}"
+
+ # commit date for binary & man page
+ local _commit_date=$(git show --no-patch --format=%cd --date=format:%Y-%m-%d)
+
+ go build -v \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-compressdwarf=false \
+ -linkmode external \
+ -extldflags ${LDFLAGS} \
+ -X main.Version=$pkgver \
+ -X main.CommitSHA=$_commit \
+ -X main.CommitDate=$_commit_date" \
+ -o build \
+ .
+
+ # man page
+ ./build/gum man > build/gum.1
+
+ # i'm not 100% sure where the man sub-command gets the date from, i assume
+ # it uses $TODAYS_DATE, so this should make the man page reproducible
+ sed \
+ -i build/gum.1 \
+ -e "s/\"[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\"/\"$_commit_date\"/"
+
+ # completions
+ for shell in bash fish zsh; do
+ ./build/gum completion "$shell" > "build/$shell-completion"
+ done
+}
+
+package() {
+ cd "$pkgname"
+
+ # binary
+ install -vDm755 -t "$pkgdir/usr/bin" build/gum
+
+ # documentation
+ install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+
+ # man pages
+ install -vDm644 -t "$pkgdir/usr/share/man/man1" build/gum.1
+
+ # completions
+ install -vDm644 build/bash-completion
"$pkgdir/usr/share/bash-completion/completions/gum"
+ install -vDm644 build/fish-completion
"$pkgdir/usr/share/fish/vendor_completions.d/gum.fish"
+ install -vDm644 build/zsh-completion
"$pkgdir/usr/share/zsh/site-functions/_gum"
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}