desktop/kdewebdev/PKGBUILD

89 lines
2.8 KiB
Bash
Raw Normal View History

2013-12-18 02:36:04 +08:00
# Include global configuration
source ../kdeapps.conf
2010-05-24 23:27:39 +08:00
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-02-01 19:24:18 +08:00
pkgrel=1
2010-05-24 23:27:39 +08:00
url="http://www.kde.org/"
license=('GPL' 'LGPL' 'FDL')
options=('docs' 'debug')
2015-02-20 06:29:49 +08:00
makedepends=('pkgconfig' 'cmake' 'automoc4' 'ruby' "kdepimlibs>=${_libsver}"
2015-05-31 20:56:09 +08:00
"kde-runtime" 'tidyhtml' "kdepim-runtime>=${_libsver}" 'kdoctools')
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
build() {
cd ${srcdir}/${pkgbase}-${pkgver}
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'
make
2010-05-24 23:27:39 +08:00
}
package_kdewebdev-kfilereplace() {
pkgdesc="Utility that replace some strings with others in a lot of files in an only operation"
depends=("kde-runtime" "kdelibs>=${_libsver}")
groups=("kde" "${pkgbase}" "kde-uninstall")
categories=('utils')
conflicts=('kdewebdev-common' <20>'kdewebdev-doc')
install=${pkgbase}.install
splitdirs="kfilereplace doc/kfilereplace"
for i in ${splitdirs} ; do
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
make DESTDIR=${pkgdir} install
done
2010-05-24 23:27:39 +08:00
}
package_kdewebdev-kimagemapeditor() {
pkgdesc="Image map editor"
depends=("kde-runtime" "kdelibs>=${_libsver}")
conflicts=('kdewebdev-common' 'kdewebdev-doc')
groups=("kde" "${pkgbase}" "kde-uninstall")
categories=('graphics')
install=${pkgbase}.install
splitdirs="kimagemapeditor doc/kimagemapeditor"
for i in ${splitdirs} ; do
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
make DESTDIR=${pkgdir} install
done
2010-05-24 23:27:39 +08:00
}
package_kdewebdev-kommander() {
pkgdesc="Visual application builder"
depends=("kde-runtime" "kdelibs>=${_libsver}")
conflicts=('kdewebdev-common' 'kdewebdev-doc')
groups=("kde" "${pkgbase}" "kde-uninstall")
categories=('programming')
install=${pkgbase}.install
splitdirs="kommander" # FIXME: doc/kommander
for i in ${splitdirs} ; do
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
make DESTDIR=${pkgdir} install
done
2010-05-24 23:27:39 +08:00
}
package_kdewebdev-klinkstatus() {
pkgdesc="Link checking utility"
depends=("kde-runtime" "kdelibs>=${_libsver}" 'tidyhtml' "kdepimlibs>=${_libsver}") # "kdepim-runtime>=${_kdever}"
conflicts=('kdewebdev-common' 'kdewebdev-doc')
groups=("kde" "${pkgbase}" "kde-uninstall")
categories=('utils')
install=${pkgbase}.install
splitdirs="klinkstatus doc/klinkstatus"
for i in ${splitdirs} ; do
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
make DESTDIR=${pkgdir} install
done
2010-05-24 23:27:39 +08:00
}