summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 872f484b2bba7847e04254c7f4d901a9cb7a76da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: weilinfox <weilinfox at yzzi dot icu>

pkgname=thlink-client-gtk
pkgver=0.0.12
pkgrel=1
pkgdesc="Touhou Project Game Netplay Tool (gtk3 client)"
arch=('x86_64' 'aarch64')
url="https://github.com/weilinfox/youmu-thlink/"
license=('AGPL3')
depends=('hicolor-icon-theme' 'gtk3' 'glib2' 'cairo')
makedepends=('go' 'gtk3' 'glib2' 'cairo' 'atk' 'zlib')
source=("https://github.com/weilinfox/youmu-thlink/archive/refs/tags/v$pkgver.tar.gz")
md5sums=("f0d03166d043db781e348fc8e47ddf86")

build() {
	cd "youmu-thlink-$pkgver"

	go build -o ./build/thlink-client-gtk ./client-gtk3/
}

package() {
	cd "youmu-thlink-$pkgver"

	install -Dm755 ./build/thlink-client-gtk $pkgdir/usr/bin/thlink-client-gtk
	install -Dm755 ./thlink-client-gtk.desktop $pkgdir/usr/share/applications/thlink-client-gtk.desktop
	install -Dm644 ./thlink-client-gtk.png $pkgdir/usr/share/icons/hicolor/32x32/apps/thlink-client-gtk.png
}