mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 18:14:51 +08:00
qtkeychain: separated into two PKGBUILD
- I don't think -qt4 is ever required anyway... - strip the -qt5 suffix - replace -qt4 -qt5 with qtkeychain to help users remove the -qt4
This commit is contained in:
parent
04b1a2c34f
commit
c220ab45dd
31
qtkeychain-qt4/PKGBUILD
Normal file
31
qtkeychain-qt4/PKGBUILD
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
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
|
||||||
|
}
|
@ -1,52 +1,34 @@
|
|||||||
pkgbase=qtkeychain
|
pkgname=qtkeychain
|
||||||
pkgname=('qtkeychain-qt4' 'qtkeychain-qt5')
|
|
||||||
pkgver=0.8.0
|
pkgver=0.8.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Provides support for secure credentials storage."
|
pkgdesc="Provides support for secure credentials storage."
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://github.com/frankosterfeld/qtkeychain"
|
url="https://github.com/frankosterfeld/qtkeychain"
|
||||||
license=('BSD')
|
license=('BSD')
|
||||||
makedepends=('cmake' 'icu' 'qt5-tools' 'qt')
|
depends=('qt5-base')
|
||||||
source=("$pkgbase-$pkgver.tar.gz::https://github.com/frankosterfeld/$pkgbase/archive/v${pkgver}.tar.gz")
|
makedepends=('cmake' 'icu' 'qt5-tools' 'extra-cmake-modules')
|
||||||
|
provides=("$pkgname-qt"{4,5})
|
||||||
|
replaces=("$pkgname-qt"{4,5})
|
||||||
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/frankosterfeld/$pkgname/archive/v${pkgver}.tar.gz")
|
||||||
sha1sums=('d6ff0726245ee24e249e76ee9025b473239dd637')
|
sha1sums=('d6ff0726245ee24e249e76ee9025b473239dd637')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
mkdir -p build{4,5}
|
mkdir -p build
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd build4
|
cd $srcdir/build
|
||||||
cmake ../$pkgbase-$pkgver \
|
|
||||||
-DBUILD_WITH_QT4=ON \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
||||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
||||||
-DCMAKE_INSTALL_LIBEXECDIR=lib/qtkeychain-qt4 \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release
|
|
||||||
make
|
|
||||||
|
|
||||||
cd ../build5
|
|
||||||
cmake ../$pkgbase-$pkgver \
|
cmake ../$pkgbase-$pkgver \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||||
-DCMAKE_INSTALL_LIBEXECDIR=lib/qtkeychain-qt5 \
|
-DCMAKE_INSTALL_LIBEXECDIR=lib/${pkgname} \
|
||||||
-DCMAKE_BUILD_TYPE=Release
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DLIBSECRET_SUPPORT=OFF
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package_qtkeychain-qt4() {
|
package() {
|
||||||
depends=('qt')
|
cd $srcdir/build
|
||||||
provides=('qtkeychain')
|
|
||||||
replaces=('qtkeychain')
|
|
||||||
|
|
||||||
cd build4
|
|
||||||
make DESTDIR="$pkgdir" install
|
make DESTDIR="$pkgdir" install
|
||||||
install -Dm644 "$srcdir"/$pkgbase-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
install -Dm644 "$srcdir"/$pkgname-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||||
}
|
|
||||||
|
|
||||||
package_qtkeychain-qt5() {
|
|
||||||
depends=('qt5-base')
|
|
||||||
|
|
||||||
cd build5
|
|
||||||
make DESTDIR="$pkgdir" install
|
|
||||||
install -Dm644 "$srcdir"/$pkgbase-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user