Date: Thursday, May 11, 2023 @ 07:22:54
Author: grawlinson
Revision: 1459882
archrelease: copy trunk to community-x86_64
Added:
lf/repos/community-x86_64/PKGBUILD
(from rev 1459881, lf/trunk/PKGBUILD)
Deleted:
lf/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 187 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 95 insertions(+), 92 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-05-11 07:22:05 UTC (rev 1459881)
+++ PKGBUILD 2023-05-11 07:22:54 UTC (rev 1459882)
@@ -1,92 +0,0 @@
-# Maintainer: George Rawlinson <[email protected]>
-# Contributor: Andrew Rabert <[email protected]>
-# Contributor: Stefan Tatschner <[email protected]>
-# Contributor: Ian Beringer <[email protected]>
-# Contributor: Stefan Husmann <[email protected]>
-
-pkgname=lf
-pkgver=28
-pkgrel=1
-pkgdesc='A terminal file manager inspired by ranger'
-arch=('x86_64')
-url='https://github.com/gokcehan/lf'
-license=('MIT')
-depends=('glibc')
-makedepends=('git' 'go')
-options=('!lto')
-_commit='b47cf6d5a525c39db268c2f7b77e2b7497843b17'
-source=("$pkgname::git+$url#commit=$_commit")
-b2sums=('SKIP')
-
-pkgver() {
- cd "$pkgname"
-
- git describe --tags | sed 's/^r//'
-}
-
-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.gVersion=$pkgver" \
- -o build \
- .
-}
-
-check() {
- cd "$pkgname"
-
- go test -v ./...
-}
-
-package() {
- cd "$pkgname"
-
- # binary
- install -vDm755 -t "$pkgdir/usr/bin" build/lf
-
- # man page
- install -vDm644 -t "$pkgdir/usr/share/man/man1" lf.1
-
- # documentation
- install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
etc/lfrc.example
-
- # desktop file
- install -vDm644 -t "$pkgdir/usr/share/applications" lf.desktop
-
- # vim integration
- install -vDm644 -t "$pkgdir/usr/share/vim/vimfiles/syntax" etc/lf.vim
- install -vDm644 -t "$pkgdir/usr/share/vim/vimfiles/ftdetect" etc/lf.vim
-
- # shell integrations
- install -vDm644 -t "$pkgdir/etc/profile.d" etc/*.{sh,csh}
- install -vDm644 -t "$pkgdir/usr/share/fish/vendor_functions.d" etc/lfcd.fish
-
- # shell completions
- install -vDm644 etc/lf.bash
"$pkgdir/usr/share/bash/bash-completion/completions/lf"
- install -vDm644 etc/lf.fish
"$pkgdir/usr/share/fish/vendor_completions.d/lf.fish"
- install -vDm644 etc/lf.zsh "$pkgdir/usr/share/zsh/site-functions/_lf"
-
- # license
- install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
-}
Copied: lf/repos/community-x86_64/PKGBUILD (from rev 1459881, lf/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-05-11 07:22:54 UTC (rev 1459882)
@@ -0,0 +1,95 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Andrew Rabert <[email protected]>
+# Contributor: Stefan Tatschner <[email protected]>
+# Contributor: Ian Beringer <[email protected]>
+# Contributor: Stefan Husmann <[email protected]>
+
+pkgname=lf
+pkgver=29
+pkgrel=1
+pkgdesc='A terminal file manager inspired by ranger'
+arch=('x86_64')
+url='https://github.com/gokcehan/lf'
+license=('MIT')
+depends=('glibc')
+makedepends=('git' 'go')
+options=('!lto')
+_commit='2c86577b953d91ba8190843b665e5ce18d95db04'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^r//'
+}
+
+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.gVersion=$pkgver" \
+ -o build \
+ .
+}
+
+check() {
+ cd "$pkgname"
+
+ go test -v ./...
+}
+
+package() {
+ cd "$pkgname"
+
+ # binary
+ install -vDm755 -t "$pkgdir/usr/bin" build/lf
+
+ # man page
+ install -vDm644 -t "$pkgdir/usr/share/man/man1" lf.1
+
+ # documentation
+ install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
etc/lfrc.example
+
+ # desktop file
+ install -vDm644 -t "$pkgdir/usr/share/applications" lf.desktop
+
+ # vim integration
+ install -vDm644 -t "$pkgdir/usr/share/vim/vimfiles/syntax" etc/lf.vim
+ install -vDm644 -t "$pkgdir/usr/share/vim/vimfiles/ftdetect" etc/lf.vim
+
+ # shell integrations
+ install -vDm644 -t "$pkgdir/etc/profile.d" etc/*.{sh,csh}
+ install -vDm644 -t "$pkgdir/usr/share/fish/vendor_functions.d" etc/lfcd.fish
+
+ # shell completions
+ install -vDm644 etc/lf.bash
"$pkgdir/usr/share/bash/bash-completion/completions/lf"
+ install -vDm644 etc/lf.fish
"$pkgdir/usr/share/fish/vendor_completions.d/lf.fish"
+ install -vDm644 etc/lf.zsh "$pkgdir/usr/share/zsh/site-functions/_lf"
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}