mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-13 00:16:45 +02:00
48 lines
1.4 KiB
Text
48 lines
1.4 KiB
Text
# Contributor: mekyt <hello@mek.yt>
|
|
# Maintainer: mekyt <hello@mek.yt>
|
|
pkgname=linkquisition
|
|
pkgver=1.6.1
|
|
pkgrel=4
|
|
pkgdesc="Desktop browser chooser written in GO"
|
|
url="https://github.com/Strobotti/linkquisition"
|
|
# Same as glfw-wayland
|
|
arch="all !armhf"
|
|
license="MIT"
|
|
depends="glfw-wayland"
|
|
makedepends="
|
|
go
|
|
glfw-wayland-dev
|
|
"
|
|
checkdepends="libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev"
|
|
options="net" # go mods
|
|
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/Strobotti/linkquisition/archive/refs/tags/v$pkgver.tar.gz
|
|
$pkgname.desktop
|
|
"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -tags release,wayland -ldflags "-s -w -X main.version=$pkgver" -o linkquisition cmd/*.go
|
|
}
|
|
|
|
check() {
|
|
go test -v ./...
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir"
|
|
install -Dm644 $pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
|
|
|
|
cd "$builddir"
|
|
install -Dm0755 $pkgname "$pkgdir"/usr/bin/$pkgname
|
|
install -Dm0644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
}
|
|
|
|
sha512sums="
|
|
83e47381d4af6e79fd703506cc124635cbdabbf66ab275ba2bd401c08335a3f2e3781193be1e7438bb469e1fae640e8aa0b6122014ebccdf5032b4ff0c2ba6b0 linkquisition-1.6.1.tar.gz
|
|
32cee38a19e855ee2ecc913dab86c88ef3a142d809946bf7e2b470e02ec62e77daf1399e022714bf1360b80f0a0663acb5bf0fd28f6689e48eb37a58b6edb928 linkquisition.desktop
|
|
"
|