From 81059cff012040daba88ae766539280b40abb81d Mon Sep 17 00:00:00 2001 From: Roberto Oliveira Date: Mon, 19 Mar 2018 22:17:34 +0000 Subject: community/qtkeychain: modernize APKBUILD --- community/qtkeychain/APKBUILD | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'community/qtkeychain') diff --git a/community/qtkeychain/APKBUILD b/community/qtkeychain/APKBUILD index 22bc12a153..0c5df543dc 100644 --- a/community/qtkeychain/APKBUILD +++ b/community/qtkeychain/APKBUILD @@ -2,37 +2,30 @@ # Maintainer: pkgname=qtkeychain pkgver=0.8.0 -pkgrel=0 +pkgrel=1 pkgdesc="Qt API to store passwords and other secret data" url="https://github.com/frankosterfeld/qtkeychain" arch="all" license="BSD" -depends= depends_dev="qt-dev" makedepends="$depends_dev cmake" -install= subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/frankosterfeld/qtkeychain/archive/v$pkgver.tar.gz" - -_builddir="$srcdir"/$pkgname-$pkgver - -prepare() { - cd "$_builddir" -} +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_LIBEXECDIR=lib/${pkgname} \ -DCMAKE_BUILD_TYPE=Release - make || return 1 + make } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install } -- cgit v1.2.3