mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
KChildLock added.
This commit is contained in:
parent
91b4947bb0
commit
f1b0f14dce
49
kchildlock/PKGBUILD
Normal file
49
kchildlock/PKGBUILD
Normal 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
|
||||
}
|
9
kchildlock/docbook-version-fix.diff
Normal file
9
kchildlock/docbook-version-fix.diff
Normal 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 -->
|
Loading…
Reference in New Issue
Block a user