updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / qlipper2-git / PKGBUILD
blob554c5f4ff2f80b5611137ef21bb679fd1875dec6
1 # Maintainer: karabaja4 <karabaja4@gmail.com>
2 # Contributor: Demon
4 pkgname=qlipper2-git
5 pkgver=20120103
6 pkgrel=1
7 pkgdesc="Lightweight & cross-platform clipboard history applet based on qt"
8 arch=('i686' 'x86_64')
9 url="https://gitorious.org/qlipper/qlipper2"
10 license=("GPL")
11 depends=('qt')
12 provides=('qlipper')
13 conflicts=('qlipper')
15 _gitroot="git://gitorious.org/qlipper/qlipper2.git"
16 _gitname="qlipper2"
18 build() {
19   
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_gitname-build"
34   cp -R "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
36   
37   qmake INSTALL_PREFIX=/usr
38   make
41 package() {
42   cd "$srcdir/$_gitname-build"
43   install -m 755 -d ${pkgdir}/usr/share/qlipper/translations 
44   install -D -m755 qlipper ${pkgdir}/usr/bin/qlipper
45   install -Dm644 qlipper.desktop ${pkgdir}/usr/share/applications/qlipper.desktop
46   install -Dm644 src/icons/qlipper.png ${pkgdir}/usr/share/pixmaps/qlipper.png
47   install -Dm644 ts/*.qm ${pkgdir}/usr/share/qlipper/translations