desktop/kdewebdev/PKGBUILD

105 lines
3.0 KiB
Bash
Raw Normal View History

2013-12-18 02:36:04 +08:00
2013-12-18 02:41:12 +08:00
# Maintainer: Manuel Tortosa <manutortosa@chakra-project@org>
2010-05-24 23:27:39 +08:00
2013-12-18 02:36:04 +08:00
# Include global configuration
2010-05-24 23:27:39 +08:00
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
2011-07-23 02:02:15 +08:00
pkgbase=('kdewebdev')
pkgname=('kdewebdev-kfilereplace'
2010-05-24 23:27:39 +08:00
'kdewebdev-kimagemapeditor'
'kdewebdev-kommander'
'kdewebdev-klinkstatus')
2012-11-18 17:58:34 +08:00
arch=('x86_64')
2010-05-24 23:27:39 +08:00
pkgver=${_kdever}
2014-01-11 20:59:04 +08:00
pkgrel=3
2010-05-24 23:27:39 +08:00
pkgdesc="split package"
url="http://www.kde.org/"
license=('GPL' 'LGPL' 'FDL')
options=('docs' '!header' 'debug' 'log')
2010-05-24 23:27:39 +08:00
makedepends=('pkgconfig' 'cmake' 'automoc4' 'ruby' "kdepimlibs>=${_kdever}"
2011-07-23 05:44:50 +08:00
"kde-runtime>=${_kdever}" 'tidyhtml' "kdepim-runtime>=${_kdever}")
2010-05-24 23:27:39 +08:00
2012-03-30 09:38:15 +08:00
source=($_mirror/${pkgbase}-$_kdever.tar.xz)
2014-01-11 20:59:04 +08:00
sha256sums=(`grep ${pkgbase}-$_kdever.tar.xz ../checksums.txt | cut -d" " -f1`)
2010-05-24 23:27:39 +08:00
2011-07-23 02:02:15 +08:00
build() {
2011-06-05 02:22:27 +08:00
cd ${srcdir}/${pkgbase}-${pkgver}
2010-05-24 23:27:39 +08:00
msg "starting build ..."
cmake . -DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
2012-05-27 19:03:32 +08:00
make
2010-05-24 23:27:39 +08:00
}
package_kdewebdev-kfilereplace() {
2010-05-24 23:27:39 +08:00
pkgdesc="Utility that replace some strings with others in a lot of files in an only operation"
2011-07-23 02:02:15 +08:00
depends=("kde-runtime>=${_kdever}" "kdelibs>=${_kdever}")
2011-06-05 02:22:27 +08:00
groups=("kde" "${pkgbase}" "kde-uninstall")
2012-03-06 17:59:48 +08:00
categories=('utils')
conflicts=('kdewebdev-common' <20>'kdewebdev-doc')
2011-06-05 02:22:27 +08:00
install=${pkgbase}.install
2010-05-24 23:27:39 +08:00
splitdirs="kfilereplace doc/kfilereplace"
2010-05-24 23:27:39 +08:00
for i in ${splitdirs} ; do
2011-06-05 02:22:27 +08:00
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
2010-05-24 23:27:39 +08:00
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdewebdev-kimagemapeditor() {
2010-05-24 23:27:39 +08:00
pkgdesc="Image map editor"
2011-07-23 02:02:15 +08:00
depends=("kde-runtime>=${_kdever}" "kdelibs>=${_kdever}")
conflicts=('kdewebdev-common' 'kdewebdev-doc')
2011-06-05 02:22:27 +08:00
groups=("kde" "${pkgbase}" "kde-uninstall")
2012-03-06 17:59:48 +08:00
categories=('graphics')
2011-06-05 02:22:27 +08:00
install=${pkgbase}.install
2010-05-24 23:27:39 +08:00
splitdirs="kimagemapeditor doc/kimagemapeditor"
2010-05-24 23:27:39 +08:00
for i in ${splitdirs} ; do
2011-06-05 02:22:27 +08:00
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
2010-05-24 23:27:39 +08:00
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdewebdev-kommander() {
2010-05-24 23:27:39 +08:00
pkgdesc="Kommander, the visual application builder"
2011-07-23 02:02:15 +08:00
depends=("kde-runtime>=${_kdever}" "kdelibs>=${_kdever}")
conflicts=('kdewebdev-common' 'kdewebdev-doc')
2011-06-05 02:22:27 +08:00
groups=("kde" "${pkgbase}" "kde-uninstall")
2012-03-06 17:59:48 +08:00
categories=('programming')
2011-06-05 02:22:27 +08:00
install=${pkgbase}.install
2010-05-24 23:27:39 +08:00
splitdirs="kommander" # FIXME: doc/kommander
2010-05-24 23:27:39 +08:00
for i in ${splitdirs} ; do
2011-06-05 02:22:27 +08:00
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
2010-05-24 23:27:39 +08:00
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdewebdev-klinkstatus() {
2010-05-24 23:27:39 +08:00
pkgdesc="A Link checker utility"
2011-07-23 02:02:15 +08:00
depends=("kde-runtime>=${_kdever}" "kdelibs>=${_kdever}" 'tidyhtml' "kdepimlibs>=${_kdever}") # "kdepim-runtime>=${_kdever}"
conflicts=('kdewebdev-common' 'kdewebdev-doc')
2011-06-05 02:22:27 +08:00
groups=("kde" "${pkgbase}" "kde-uninstall")
2012-03-06 17:59:48 +08:00
categories=('utils')
2011-06-05 02:22:27 +08:00
install=${pkgbase}.install
2010-05-24 23:27:39 +08:00
splitdirs="klinkstatus doc/klinkstatus"
2010-05-24 23:27:39 +08:00
for i in ${splitdirs} ; do
2011-06-05 02:22:27 +08:00
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
2010-05-24 23:27:39 +08:00
make DESTDIR=${pkgdir} install || return 1
done
}
2014-01-12 20:19:36 +08:00
sha256sums=('e76e63e9f5180d37779d3cd15834ab65c023d87bde4712390808eeef72b41d79')