mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
41 lines
1021 B
Bash
41 lines
1021 B
Bash
|
|
|
|
|
|
# Maintainer (i686): Phil Miller <philm@chakra-project[dog]org>
|
|
# Maintainer (x86_64): Manuel Tortosa <manutortosa@chakra-project@org>
|
|
|
|
# Include global configuration
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=prison
|
|
pkgver=1.0
|
|
pkgrel=3
|
|
arch=('x86_64')
|
|
pkgdesc="A barcode api to produce QRCode barcodes and DataMatrix barcode"
|
|
url="https://projects.kde.org/projects/kdesupport/prison"
|
|
license=('GPL' 'LGPL' 'FDL')
|
|
groups=("kde-complete" "kde-uninstall")
|
|
depends=('qt' 'libdmtx' 'qrencode')
|
|
source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.gz")
|
|
md5sums=('8baac61506e37a31482a0df4a5d02cd2')
|
|
|
|
build() {
|
|
msg "starting build ..."
|
|
cd ${srcdir}
|
|
mkdir -p build
|
|
cd build
|
|
|
|
cmake ../${pkgname}-${pkgver} \
|
|
-DCMAKE_BUILD_TYPE=${_build_type} \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
-DCMAKE_{SHARED,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}"/build
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|