APKBUILD 1.08 KB
Newer Older
Francesco Colista's avatar
Francesco Colista committed
1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
Kevin Daudt's avatar
Kevin Daudt committed
2
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
Francesco Colista's avatar
Francesco Colista committed
3
4
5
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=copyq
_pkgname=CopyQ
6
pkgver=3.9.1
Francesco Colista's avatar
Francesco Colista committed
7
8
9
10
pkgrel=0
pkgdesc="Clipboard manager with searchable and editable history"
url="https://github.com/hluk/CopyQ"
arch="all"
prspkt's avatar
prspkt committed
11
12
license="GPL-3.0-or-later"
makedepends="cmake libxfixes-dev libxtst-dev qt5-qtscript-dev
Kevin Daudt's avatar
Kevin Daudt committed
13
	qt5-qtsvg-dev qt5-qttools-dev qt5-qtx11extras-dev"
prspkt's avatar
prspkt committed
14
options="!check" # upstream does not provide check
Francesco Colista's avatar
Francesco Colista committed
15
16
17
18
19
20
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
prspkt's avatar
prspkt committed
21
	mkdir "$builddir"/build
Francesco Colista's avatar
Francesco Colista committed
22
23
24
}

build() {
prspkt's avatar
prspkt committed
25
26
27
28
29
30
	cd "$builddir"/build
	cmake .. \
		-DWITH_QT5=TRUE \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr
	make
Francesco Colista's avatar
Francesco Colista committed
31
32
33
34
35
36
37
}

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

38
sha512sums="9780f6624332efaf153c7d624d20da712ac766f291d5d54f3b339b3b346c07414e26b41117e4c34cd79d84c2a28a129430f0dac90663542e035224042d1450d2  copyq-3.9.1.tar.gz"