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

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

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

prspkt's avatar
prspkt committed
37
sha512sums="91fa2d23745a05c836f3310a63166f88df73c54f0a2bc58c677c3a8cfc8e4572f28b63bc0da20f670e9bc989ebcea84b61b2a4893ef75b7be8218774578b442c  copyq-3.3.0.tar.gz"