desktop/prison/PKGBUILD

41 lines
1021 B
Bash
Raw Normal View History

2013-12-18 02:36:04 +08:00
2013-12-18 02:41:12 +08:00
# Maintainer (i686): Phil Miller <philm@chakra-project[dog]org>
# Maintainer (x86_64): Manuel Tortosa <manutortosa@chakra-project@org>
2011-07-23 02:02:15 +08:00
2013-12-18 02:36:04 +08:00
# Include global configuration
2011-07-23 05:58:50 +08:00
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
2011-07-23 02:02:15 +08:00
pkgname=prison
pkgver=1.0
2012-11-17 18:12:33 +08:00
pkgrel=3
arch=('x86_64')
2011-07-23 02:02:15 +08:00
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")
2012-11-17 18:12:33 +08:00
depends=('qt' 'libdmtx' 'qrencode')
source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.gz")
2011-07-23 02:02:15 +08:00
md5sums=('8baac61506e37a31482a0df4a5d02cd2')
2012-11-17 18:12:33 +08:00
build() {
2011-07-23 02:02:15 +08:00
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 \
2012-11-17 18:12:33 +08:00
-DCMAKE_{SHARED,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
2011-07-23 02:02:15 +08:00
2012-11-17 18:12:33 +08:00
make
}
2011-07-23 02:02:15 +08:00
2012-11-17 18:12:33 +08:00
package() {
cd "${srcdir}"/build
make DESTDIR="${pkgdir}" install
2011-07-23 02:02:15 +08:00
}