improved Arch Linux build file

This commit is contained in:
Martin Brodbeck 2022-09-26 13:48:48 +02:00
parent 7299ae7c66
commit 77f45fa55f

View file

@ -1,28 +1,33 @@
# Maintainer: Martin Brodbeck <martin at brodbeck-online dot de> # Maintainer: Martin Brodbeck <martin at brodbeck-online dot de>
pkgname=kima2 pkgname=kima2
pkgver=1.5.0 pkgver=1.6.0
pkgrel=1 pkgrel=1
pkgdesc="A small cash point program for children's things markets (German only)" pkgdesc="A small cash point program for children's things markets (German only)"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url="http://www.rustysoft.de/?01_kima2" url="http://www.rustysoft.de/software/kima2"
license=('custom') license=('custom')
depends=('glibc' 'libusb' 'qt5-base' 'sqlite3' 'xlnt') depends=('glibc' 'libusb' 'qt6-base' 'sqlite3' 'xlnt')
makedepends=('boost>=1.62') makedepends=('boost>=1.62')
source=($pkgname-$pkgver.tar.gz) source=(git+https://git.rustysoft.de/martin/kima2-cpp)
md5sums=('c0e6a64b5037675edce4ba8bc4639bd3') sha256sums=('SKIP')
build() { build() {
if [ ! -d $pkgname/build ]; then cd $pkgname-cpp
mkdir $pkgname/build
git submodule init
git submodule update
if [ -d build ]; then
rm -rf build
fi fi
cd $pkgname/build mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DKIMA2_USE_EXTERNAL_JSON=OFF .. cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DKIMA2_USE_EXTERNAL_JSON=OFF ..
make make
} }
package() { package() {
cd $pkgname/build cd $pkgname-cpp/build
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
cd .. cd ..
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"