aboutsummaryrefslogtreecommitdiffstats
path: root/testing/featherpad/APKBUILD
blob: 9d53de99381e5084d91ebb5dc9c54ff078635765 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=featherpad
pkgver=1.3.5
pkgrel=0
pkgdesc="Lightweight Qt plain-text editor"
url="https://github.com/tsujan/FeatherPad"
license="GPL-3.0-or-later"
arch="all"
makedepends="
	cmake
	hunspell-dev
	libx11-dev
	qt5-qtbase-dev
	qt5-qtsvg-dev
	qt5-qttools-dev
	qt5-qtx11extras-dev
	"
subpackages="$pkgname-lang"
options="!check" # no test suite
source="https://github.com/tsujan/FeatherPad/releases/download/V$pkgver/FeatherPad-$pkgver.tar.xz"
builddir="$srcdir/FeatherPad-$pkgver"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBUILD_SHARED_LIBS=True \
		$CMAKE_CROSSOPTS .
	cmake --build build
}

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

lang() {
	amove usr/share/featherpad/translations
}

sha512sums="
0e06d51bcae55e9b89c3dcd2f1b20b22dfaeeb3b376da9ce3d9bb706e16669bce5c80fead1a2b2268d62b600c1cda6b666acc2d8148a8df9d999adcbd4f5466b  FeatherPad-1.3.5.tar.xz
"