2015-01-09 21:56:13 +08:00
|
|
|
# Maintainer: Jeff Huang <s8321414[at]gmail[dot]com>
|
2010-10-20 01:29:20 +08:00
|
|
|
|
|
|
|
pkgname=kwebkitpart
|
2015-01-09 21:56:13 +08:00
|
|
|
pkgver=1.3.4
|
2010-10-20 01:29:20 +08:00
|
|
|
pkgrel=1
|
2015-01-09 21:56:13 +08:00
|
|
|
pkgdesc="A WebKit browser component for KDE"
|
|
|
|
url="https://projects.kde.org/projects/extragear/base/kwebkitpart/"
|
2013-03-11 06:10:41 +08:00
|
|
|
arch=('x86_64')
|
2010-10-20 01:29:20 +08:00
|
|
|
license=('GPL')
|
2015-01-09 21:56:13 +08:00
|
|
|
depends=('kdelibs')
|
2010-10-20 01:29:20 +08:00
|
|
|
makedepends=('cmake' 'automoc4')
|
|
|
|
conflicts=('kwebkitpart-svn')
|
|
|
|
install=${pkgname}.install
|
2015-01-09 21:56:13 +08:00
|
|
|
source=("ftp://ftp.archlinux.org/other/packages/${pkgname}/${pkgname}-${pkgver}.tar.xz"
|
|
|
|
'sanitize-input.patch')
|
|
|
|
md5sums=('0a3e176a7c24f00e22c92a7b105585f8'
|
|
|
|
'f9ae9520069ffac4c5da1f408fd4bbdf')
|
2010-10-20 01:29:20 +08:00
|
|
|
|
2015-01-09 21:56:13 +08:00
|
|
|
prepare() {
|
2010-10-20 01:29:20 +08:00
|
|
|
cd ${srcdir}
|
2011-10-13 04:48:40 +08:00
|
|
|
mkdir build
|
2015-01-09 21:56:13 +08:00
|
|
|
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
patch -p1 -i "${srcdir}"/sanitize-input.patch
|
|
|
|
|
|
|
|
sed -i '/add_subdirectory(kdelauncher)/d' CMakeLists.txt
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2010-10-20 01:29:20 +08:00
|
|
|
cd build
|
2013-03-11 06:10:41 +08:00
|
|
|
cmake ../${pkgname}-${pkgver} \
|
2010-10-20 01:29:20 +08:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${srcdir}/build
|
|
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
}
|