desktop/kio-mtp-git/PKGBUILD

37 lines
742 B
Bash
Raw Normal View History

2013-05-18 02:12:57 +08:00
pkgname=kio-mtp-git
_pkgname=kio-mtp
2014-10-08 00:28:14 +08:00
pkgver=20141007
2013-05-18 02:12:57 +08:00
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')
2014-01-01 21:29:40 +08:00
makedepends=('cmake' 'git' 'automoc4')
2013-05-18 02:12:57 +08:00
conflicts=('kio-mtp')
provides=('kio-mtp')
2014-10-08 00:19:15 +08:00
source=($_pkgname::git://anongit.kde.org/$_pkgname)
md5sums=('SKIP')
2014-10-08 00:28:14 +08:00
pkgver() {
date +%Y%m%d
}
2014-10-08 00:19:15 +08:00
prepare() {
rm -rf ${srcdir}/$_pkgname-build
mkdir ${srcdir}/$_pkgname-build
}
2013-05-18 02:12:57 +08:00
build() {
2014-10-08 00:19:15 +08:00
cd $srcdir/$_pkgname-build
2013-05-18 02:12:57 +08:00
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
2014-10-08 00:19:15 +08:00
../$_pkgname
2013-05-18 02:12:57 +08:00
make
}
package() {
2014-10-08 00:19:15 +08:00
cd $srcdir/$_pkgname-build
2013-05-18 02:12:57 +08:00
make DESTDIR=$pkgdir install
}