mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
37 lines
742 B
Bash
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
|
|
}
|