Commit 81059cff authored by Roberto Oliveira's avatar Roberto Oliveira

community/qtkeychain: modernize APKBUILD

parent 18848a5b
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment