2024-01-28 18:19:46 +01:00
|
|
|
# Contributor: ITmodulo <itmodulo@disroot.org>
|
|
|
|
# Maintainer: ITmodulo <itmodulo@disroot.org>
|
|
|
|
pkgname=gtkcord4
|
2024-02-06 16:29:11 +01:00
|
|
|
pkgver=0.0.18
|
|
|
|
pkgrel=0
|
2024-01-28 18:19:46 +01:00
|
|
|
pkgdesc="GTK4/Libadwaita native discord client written in Go"
|
|
|
|
url="https://github.com/diamondburned/gtkcord4"
|
|
|
|
license="GPL-3.0-or-later"
|
|
|
|
arch="all"
|
2024-02-05 22:45:17 +01:00
|
|
|
makedepends="go gobject-introspection-dev gtk4.0-dev libadwaita-dev libsecret-dev libcanberra-dev"
|
2024-01-28 18:19:46 +01:00
|
|
|
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="
|
2024-02-06 16:29:11 +01:00
|
|
|
a36c0e775bad20b1c532140cf3d36f68291a590a0e922b2d0df1b4fa23f7764048c8d086e6b4eff27eda5a15c29a5d1efe4795aa134bb8e287c00b4e45bc7c4b gtkcord4-0.0.18.tar.gz
|
|
|
|
"
|