Date: Tuesday, April 4, 2023 @ 08:54:22
Author: grawlinson
Revision: 1434498
archrelease: copy trunk to community-x86_64
Added:
vhs/repos/community-x86_64/PKGBUILD
(from rev 1434497, vhs/trunk/PKGBUILD)
Deleted:
vhs/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 177 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 90 insertions(+), 87 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-04 08:53:17 UTC (rev 1434497)
+++ PKGBUILD 2023-04-04 08:54:22 UTC (rev 1434498)
@@ -1,87 +0,0 @@
-# Maintainer: George Rawlinson <[email protected]>
-
-pkgname=vhs
-pkgver=0.2.0
-pkgrel=1
-pkgdesc='A tool for recording terminal GIFs'
-arch=('x86_64')
-url='https://github.com/charmbracelet/vhs'
-license=('MIT')
-depends=('ffmpeg' 'ttyd')
-makedepends=('git' 'go')
-options=('!lto')
-_commit='6f7cc819032319a4bbef579d82c41b66bc0c427a'
-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}"
-
- go build -v \
- -trimpath \
- -buildmode=pie \
- -mod=readonly \
- -modcacherw \
- -ldflags "-linkmode external -extldflags ${LDFLAGS} \
- -X main.Version=v$pkgver \
- -X main.CommitSHA=$_commit \
- -X main.CommitDate=$(git show --no-patch --format=%cd
--date=format:%Y-%m-%d)" \
- -o build \
- .
-
- # man page
- ./build/vhs man > build/vhs.1
-
- # completions
- for shell in bash fish zsh; do
- ./build/vhs completion "$shell" > "build/$shell-completion"
- done
-}
-
-check() {
- cd "$pkgname"
-
- go test -v ./...
-}
-
-package() {
- cd "$pkgname"
-
- # binary
- install -vDm755 -t "$pkgdir/usr/bin" build/vhs
-
- # documentation
- install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
-
- # man pages
- install -vDm644 -t "$pkgdir/usr/share/man/man1" build/vhs.1
-
- # completions
- install -vDm644 build/bash-completion
"$pkgdir/usr/share/bash-completion/completions/vhs"
- install -vDm644 build/fish-completion
"$pkgdir/usr/share/fish/vendor_completions.d/vhs.fish"
- install -vDm644 build/zsh-completion
"$pkgdir/usr/share/zsh/site-functions/_vhs"
-
- # license
- install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
-}
Copied: vhs/repos/community-x86_64/PKGBUILD (from rev 1434497,
vhs/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-04-04 08:54:22 UTC (rev 1434498)
@@ -0,0 +1,90 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=vhs
+pkgver=0.3.0
+pkgrel=1
+pkgdesc='A tool for recording terminal GIFs'
+arch=('x86_64')
+url='https://github.com/charmbracelet/vhs'
+license=('MIT')
+depends=('ffmpeg' 'ttyd')
+makedepends=('git' 'go')
+options=('!lto')
+_commit='7cb57d16a9ce2e133b0e1c59a2d0bfdf1d0e5421'
+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}"
+
+ go build -v \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-compressdwarf=false \
+ -linkmode external \
+ -extldflags ${LDFLAGS} \
+ -X main.Version=v$pkgver \
+ -X main.CommitSHA=$_commit \
+ -X main.CommitDate=$(git show --no-patch --format=%cd
--date=format:%Y-%m-%d)" \
+ -o build \
+ .
+
+ # man page
+ ./build/vhs man > build/vhs.1
+
+ # completions
+ for shell in bash fish zsh; do
+ ./build/vhs completion "$shell" > "build/$shell-completion"
+ done
+}
+
+check() {
+ cd "$pkgname"
+
+ go test -v ./...
+}
+
+package() {
+ cd "$pkgname"
+
+ # binary
+ install -vDm755 -t "$pkgdir/usr/bin" build/vhs
+
+ # documentation
+ install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+
+ # man pages
+ install -vDm644 -t "$pkgdir/usr/share/man/man1" build/vhs.1
+
+ # completions
+ install -vDm644 build/bash-completion
"$pkgdir/usr/share/bash-completion/completions/vhs"
+ install -vDm644 build/fish-completion
"$pkgdir/usr/share/fish/vendor_completions.d/vhs.fish"
+ install -vDm644 build/zsh-completion
"$pkgdir/usr/share/zsh/site-functions/_vhs"
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}