linux_alpine/srcpkgs/gtkcord4/APKBUILD

30 lines
1.0 KiB
Plaintext

# Contributor: ITmodulo <itmodulo@disroot.org>
# Maintainer: ITmodulo <itmodulo@disroot.org>
pkgname=gtkcord4
pkgver=0.0.19
pkgrel=0
pkgdesc="GTK4/Libadwaita native discord client written in Go"
url="https://github.com/diamondburned/gtkcord4"
license="GPL-3.0-or-later"
arch="all"
makedepends="go gobject-introspection-dev gtk4.0-dev libadwaita-dev libsecret-dev libcanberra-dev"
depends="libsecret"
source="$pkgname-$pkgver.tar.gz::https://github.com/diamondburned/$pkgname/archive/refs/tags/v$pkgver.tar.gz"
build() {
go build -ldflags="-s -w" -o bin/$pkgname
}
check() {
go test ./...
}
package() {
install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname
install -Dm644 internal/icons/hicolor/scalable/apps/logo.svg "$pkgdir"/usr/share/pixmaps/gtkcord4.svg
install -Dm644 nix/xyz.diamondb.gtkcord4.desktop "$pkgdir"/usr/share/applications/gtkcord4.desktop
}
sha512sums="
2bdd24d671f2f303ec80067f5ad8a0e2afcf91d31f68547b6df9d1b15bdf20443498efd393055061c3772efc58553ffd8a28b75851a8b5e0afa184546ab4a623 gtkcord4-0.0.19.tar.gz
"