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.0
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="a8caba4807709fb488cd60929dda79aca699ace644c0917c09d76929c81b8375d182278e6215a26ff40af1b2903495396eee6db32d7195085dfa54a02ced1642  copyq-3.9.0.tar.gz"