blob: bd6805dd3536ca848c38064bacc212628fc93c17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Maintainer: Equationzhao <equationzhao at foxmail dot com>
pkgname='g-ls'
pkgver=0.14.0
pkgrel=1
pkgdesc='a powerful ls in golang'
arch=x86_64
url='https://github.com/Equationzhao/g'
license=('MIT')
makedepends=('go')
backup=("etc/$pkgname/config.conf")
source=("g-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('3bbe10a755005e6e2e9ad64a54035dff8014b639a39623d0a7503fa690aa4b23')
build() {
cd "$srcdir/g-$pkgver"
go build -ldflags="-s -w" -o g
}
package() {
cd "$srcdir/g-$pkgver"
mkdir -p "$pkgdir/usr/bin"
install -m755 g "$pkgdir/usr/bin"
cd man
install -Dm644 g.1.gz "$pkgdir/usr/share/man/man1/g.1.gz"
}
|