desktop/kio-mtp-git/PKGBUILD
2014-10-07 16:28:14 +00:00

37 lines
742 B
Bash

pkgname=kio-mtp-git
_pkgname=kio-mtp
pkgver=20141007
pkgrel=1
pkgdesc="Provides mtp protocol support."
arch=('x86_64')
url="https://projects.kde.org/projects/playground/base/kio-mtp"
license=('GPL2')
depends=('kdelibs' 'libmtp')
makedepends=('cmake' 'git' 'automoc4')
conflicts=('kio-mtp')
provides=('kio-mtp')
source=($_pkgname::git://anongit.kde.org/$_pkgname)
md5sums=('SKIP')
pkgver() {
date +%Y%m%d
}
prepare() {
rm -rf ${srcdir}/$_pkgname-build
mkdir ${srcdir}/$_pkgname-build
}
build() {
cd $srcdir/$_pkgname-build
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
../$_pkgname
make
}
package() {
cd $srcdir/$_pkgname-build
make DESTDIR=$pkgdir install
}