aboutsummaryrefslogtreecommitdiffstats
path: root/testing/flameshot/APKBUILD
blob: ccb8191299507823ca64d0d210a30272150ae7fa (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
pkgname=flameshot
pkgver=0.6.0
pkgrel=0
pkgdesc="Featureful screenshot app"
url="https://github.com/lupoDharkael/flameshot"
arch="all"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="make qt5-qtsvg-dev qt5-qttools-dev"
subpackages="$pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/lupoDharkael/flameshot/archive/v${pkgver}.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
options="!check" # No test suite
langdir="/usr/share/flameshot/translations"

prepare() {
	default_prepare
	sed -i "s|TAG_VERSION = .*|TAG_VERSION = v${pkgver}|" flameshot.pro
}

build() {
	cd "$builddir"

	qmake-qt5 CONFIG+=packaging PREFIX=/usr DATADIR=/usr/share
	make
}

package() {
	cd "$builddir"
	make INSTALL_ROOT="$pkgdir" install
}


sha512sums="194127032ab0f62a6ba2698688e11b2d4e6f0e04a282144f5fbb6c232eeebc71371af2d55abbb6e98b8649dee036e6f0a6ef55710e4321a60fd5ac6e453ab975  flameshot-0.6.0.tar.gz"