desktop/kchildlock/PKGBUILD

45 lines
1.2 KiB
Bash

#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=kchildlock
pkgver=0.90.4
pkgrel=1
pkgdesc="Computer usage time monitor and administrator, focused on parental control."
url="http://sourceforge.net/projects/kchildlock"
license=('GPL2')
arch=('i686' 'x86_64')
depends=('kdebase-runtime')
makedepends=('automoc4' 'cmake' 'docbook-xsl')
categories=('system')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('a31d8791fbb32c1e724464d61d37ee70')
build() {
# find . -name CMakeLists.txt -exec sed -i 's/add_subdirectory(doc)/#add_subdirectory(doc)/g' {} \;
cd $srcdir/$pkgname-$pkgver
mkdir build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
..
make
# cmake
# -DCMAKE_INSTALL_PREFIX=/usr
# -G KDevelop3
# -DCMAKE_BUILD_TYPE=Release \
# -DDATA_INSTALL_DIR=/usr/share/kde4/
# -DICON_INSTALL_DIR=/usr/share/kde4 .
# make
}
package() {
cd ${srcdir}/$pkgname-$pkgver/build
make DESTDIR=${pkgdir} install
}