blob: c65893db599e769e8072b9beb8ae4feaa9ea2f6d (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
pkgname=hilbish
pkgver=1.2.0
pkgrel=1
pkgdesc="The flower shell for Lua users"
arch=('x86_64' 'i686' 'aarch64')
url="https://github.com/rosettea/hilbish"
license=('MIT')
depends=('lua-lunacolors' 'lua-succulent' 'lua-inspect')
makedepends=('go')
install="$pkgname.install"
options=('!emptydirs')
changelog=CHANGELOG.md
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('e5bb77a90e05ee8ab063e4372919f58f6c6ccd341056750a581899ca193782a4')
prepare() {
cd "Hilbish-$pkgver"
sed -i '\|/etc/shells|d' Makefile
go mod download
}
build() {
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
cd "Hilbish-$pkgver"
## `make build` does not build due to overriding our ldflags
go build
}
check() {
cd "Hilbish-$pkgver"
go test ./...
}
package() {
cd "Hilbish-$pkgver"
DESTDIR="$pkgdir/" make install
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
|