aboutsummaryrefslogtreecommitdiffstats
path: root/testing/copyq/APKBUILD
blob: a5c983fadb7ca15ab98dfeaaf15e212225d811bf (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=copyq
_pkgname=CopyQ
pkgver=3.9.2
pkgrel=0
pkgdesc="Clipboard manager with searchable and editable history"
url="https://github.com/hluk/CopyQ"
arch="all"
license="GPL-3.0-or-later"
makedepends="cmake libxfixes-dev libxtst-dev qt5-qtscript-dev
	qt5-qtsvg-dev qt5-qttools-dev qt5-qtx11extras-dev"
options="!check" # upstream does not provide check
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/hluk/${_pkgname}/archive/v${pkgver}.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

prepare() {
	default_prepare
	mkdir "$builddir"/build
}

build() {
	cd "$builddir"/build
	cmake .. \
		-DWITH_QT5=TRUE \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr
	make
}

package() {
	cd "$builddir"/build
	make DESTDIR="${pkgdir}" install
}

sha512sums="4c9066df2e02ca15a1c326bb588bd1ca5d23a45e696156b01d33427682edb3cef5d5c2bf091f7c02948802541454b6c011bf5a79c43283c18eb3d7bbb67c5dca  copyq-3.9.2.tar.gz"