mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
47 lines
988 B
Bash
47 lines
988 B
Bash
pkgname=kio-mtp-git
|
|
_pkgname=kio-mtp
|
|
pkgver=20140513
|
|
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')
|
|
|
|
_gitroot="git://anongit.kde.org/$_pkgname"
|
|
_gitname="$_pkgname"
|
|
|
|
build() {
|
|
cd $srcdir
|
|
|
|
msg "Connecting to GIT server...."
|
|
|
|
if [ -d $_gitname ] ; then
|
|
cd $_gitname && git pull origin
|
|
msg "The local files are updated."
|
|
else
|
|
git clone $_gitroot $_gitname --depth=1
|
|
fi
|
|
|
|
msg "GIT checkout done or server timeout"
|
|
msg "Starting make..."
|
|
|
|
rm -rf $srcdir/$_gitname-build
|
|
cp -R $srcdir/$_gitname $srcdir/$_gitname-build
|
|
cd $srcdir/$_gitname-build
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
.
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$_gitname-build
|
|
|
|
make DESTDIR=$pkgdir install
|
|
}
|