Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
Fix mkspecs install dir
Browse files Browse the repository at this point in the history
git-svn-id: file:///srv/repos/svn-packages/svn@404284 eb2447ed-0c53-47e4-bac8-5bc4a241df78
  • Loading branch information
antonio-rojas authored and svntogit committed Dec 13, 2020
1 parent ca513d2 commit e677854
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions trunk/PKGBUILD
Expand Up @@ -2,7 +2,7 @@

pkgname=kdb
pkgver=3.2.0
pkgrel=4
pkgrel=5
pkgdesc="A database connectivity and creation framework for various database vendors"
arch=(x86_64)
url="http://www.kexi-project.org/"
Expand All @@ -11,30 +11,27 @@ depends=(kcoreaddons)
makedepends=(extra-cmake-modules python mariadb-libs postgresql qt5-tools doxygen qt5-doc)
optdepends=('mariadb-libs: MySQL plugin' 'postgresql: PostgreSQL plugin')
source=("https://download.kde.org/stable/$pkgname/src/$pkgname-$pkgver.tar.xz"{,.sig}
kdb-postgresql-12.patch::"https://invent.kde.org/libraries/kdb/-/commit/40cdaea4.patch")
kdb-postgresql-12.patch::"https://invent.kde.org/libraries/kdb/-/commit/40cdaea4.patch"
kdb-mkspecs-path.patch::"https://invent.kde.org/libraries/kdb/-/merge_requests/6.patch")
sha256sums=('8f8983bc8d143832dc14bc2003ba6af1af27688e477c0c791fd61445464f2069'
'SKIP'
'7c67b4b349432cbe44413758dcd020600eca1366c82fb2d02c361dbf66e8d0f7')
'7c67b4b349432cbe44413758dcd020600eca1366c82fb2d02c361dbf66e8d0f7'
'2efccec64624d2d38b40f13ae6a508439e0f90330d5124c884c16fce461a2988')
validpgpkeys=(4866BAF713B465677A4059643C7C0E201B6524DB) # Jarosław Staniek <staniek@kde.org>


prepare() {
mkdir -p build

cd $pkgname-$pkgver
patch -p1 -i ../kdb-postgresql-12.patch # Fix build with postgresql 12
patch -d $pkgname-$pkgver -p1 -i ../kdb-postgresql-12.patch # Fix build with postgresql 12
patch -d $pkgname-$pkgver -p1 -i ../kdb-mkspecs-path.patch # Fix mkspecs install dir
}

build() {
cd build
cmake ../$pkgname-$pkgver \
-DCMAKE_INSTALL_LIBDIR=lib \
cmake -B build -S $pkgname-$pkgver \
-DBUILD_TESTING=OFF \
-DBUILD_QCH=ON
make
cmake --build build
}

package() {
cd build
make DESTDIR="$pkgdir" install
DESTDIR="$pkgdir" cmake --install build
}

0 comments on commit e677854

Please sign in to comment.