mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
c220ab45dd
- I don't think -qt4 is ever required anyway... - strip the -qt5 suffix - replace -qt4 -qt5 with qtkeychain to help users remove the -qt4
32 lines
837 B
Bash
32 lines
837 B
Bash
pkgname=qtkeychain-qt4
|
|
pkgver=0.8.0
|
|
pkgrel=3
|
|
pkgdesc="Provides support for secure credentials storage. (Qt4 version)"
|
|
arch=('x86_64')
|
|
url="https://github.com/frankosterfeld/qtkeychain"
|
|
license=('BSD')
|
|
depends=('qt')
|
|
makedepends=('cmake' 'icu')
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/frankosterfeld/${pkgname//\-qt4/}/archive/v${pkgver}.tar.gz")
|
|
sha1sums=('d6ff0726245ee24e249e76ee9025b473239dd637')
|
|
|
|
prepare() {
|
|
mkdir -p build
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
cmake ../${pkgname//\-qt4/}-$pkgver \
|
|
-DBUILD_WITH_QT4=ON \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd build
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm644 "$srcdir"/qtkeychain-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|