linux_alpine/srcpkgs/dissent/APKBUILD

30 lines
1.0 KiB
Plaintext
Raw Normal View History

2024-01-28 18:19:46 +01:00
# Contributor: ITmodulo <itmodulo@disroot.org>
# Maintainer: ITmodulo <itmodulo@disroot.org>
pkgname=dissent
pkgver=0.0.21
pkgrel=0
2024-01-28 18:19:46 +01:00
pkgdesc="GTK4/Libadwaita native discord client written in Go"
url="https://github.com/diamondburned/dissent"
2024-01-28 18:19:46 +01:00
license="GPL-3.0-or-later"
arch="all"
makedepends="go gobject-introspection-dev gtk4.0-dev libadwaita-dev libsecret-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/so.libdb.dissent.svg "$pkgdir"/usr/share/pixmaps/so.libdb.dissent.svg
install -Dm644 nix/so.libdb.dissent.desktop "$pkgdir"/usr/share/applications/so.libdb.dissent.desktop
}
2024-01-28 18:19:46 +01:00
sha512sums="
cedd3f9794f07f8a69bae5e86ba162854896510b76685012d607766c6c3049a299c23cefb0b5b7a6ab8a1568fc096027b8588eca0a0a35c7f9bbf9cea284260e dissent-0.0.21.tar.gz
"