KChildLock added.

This commit is contained in:
Adrian Chaves Fernandez (Gallaecio) 2011-05-14 14:13:40 +00:00
parent 91b4947bb0
commit f1b0f14dce
2 changed files with 58 additions and 0 deletions

49
kchildlock/PKGBUILD Normal file
View File

@ -0,0 +1,49 @@
#
# 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.1
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')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
docbook-version-fix.diff)
md5sums=('ca3883bb69d50653426346a7c07d9645'
'68fe7edb62e9f56cd6b00dfa539122b4')
build() {
# find . -name CMakeLists.txt -exec sed -i 's/add_subdirectory(doc)/#add_subdirectory(doc)/g' {} \;
# Documentation patch.
cd $srcdir/$pkgname-$pkgver/doc/en/
patch -uN index.docbook $srcdir/docbook-version-fix.diff
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
}

View File

@ -0,0 +1,9 @@
--- index.docbook 2011-05-06 22:53:42.000000000 +0200
+++ index.docbook.kdex 2011-05-14 15:20:36.704067379 +0200
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
-<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
+<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
<!ENTITY kchildlock "<application>kchildlock</application>">
<!ENTITY kappname "&kchildlock;"><!-- Do *not* replace kappname-->
<!ENTITY package "kde-module"><!-- kdebase, kdeadmin, etc -->