aboutsummaryrefslogtreecommitdiffstats
path: root/testing/birdtray/APKBUILD
blob: cbe789d1a078344bf6deea5062d6d74aac8f3a91 (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
29
30
31
# Maintainer: Nathan <ndowens@artixlinux.org>
pkgname=birdtray
pkgver=1.9.0
pkgrel=0
pkgdesc="Run Thunderbird with a system tray icon"
url="https://github.com/gyunaev/birdtray"
arch="all"
license="GPL-3.0-only"
makedepends="cmake qt5-qttools-dev qt5-qtbase-dev qt5-qtsvg-dev
	qt5-qtx11extras-dev"
options="!check" # test fails with tests_NOTBUILT executable missing
source="$pkgname-$pkgver.tar.gz::https://github.com/gyunaev/birdtray/archive/v$pkgver.tar.gz
	"

build() {
	cp -r src/translations translations

	if [ "$CBUILD" != "$CHOST" ]; then
		export CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="898bfcebc7ba4b738e3ab41539c4de48871ebccf431bb1b12464e7f2956bad95af6158742c64ec5923d63889e777c98c75db31121d926e26f3dfe1b34d9f8b4a  birdtray-1.9.0.tar.gz"