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.18
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="
a36c0e775bad20b1c532140cf3d36f68291a590a0e922b2d0df1b4fa23f7764048c8d086e6b4eff27eda5a15c29a5d1efe4795aa134bb8e287c00b4e45bc7c4b gtkcord4-0.0.18.tar.gz
"