updated on Mon Jan 23 00:00:36 UTC 2012
[aur-mirror.git] / annual-git / PKGBUILD
blob381784a83bb9214e16d84498e45e2ba537ec2018
1 # Maintainer: Dominik Köppl <dominik@devwork.org>
3 # annual - Reminder for annual events
4 # Keeps track of all your anniversaries and hopefully reminds you at the right time.
5 # Copyright (C) 2011 Dominik Köppl
7 # This program is free software: you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by the Free
9 # Software Foundation, either version 3 of the License, or (at your option)
10 # any later version.
11
12 # This program is distributed in the hope that it will be useful, but WITHOUT 
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
15 # more details.
16
17 # You should have received a copy of the GNU General Public License along
18 # with this program.  If not, see <http://www.gnu.org/licenses/>.
20 pkgname=annual-git
21 _pkgname=annual
22 pkgver=20120118
23 pkgrel=1
24 pkgdesc='Reminds for annual events like birthdays, holidays, etc.'
25 arch=('i686' 'x86_64')
26 url='http://www.nongnu.org/annual/'
27 license=('GPL3')
28 depends=('qt>=4.6', 'perl-xml-xpath')
29 options=('strip')
30 conflicts=($_pkgname)
32 #install="$pkgname.install"
33 #source=($pkgname)
35 _gitroot="git://git.savannah.nongnu.org/$_pkgname.git"
36 _gitname="$_pkgname"
38 build() {
39     cd ${srcdir}
41         msg "Connecting to GIT server...."
42         if [ -d $_gitname ] ; then
43                 cd $_gitname && git pull origin
44                 msg "The local files are updated."
45         else
46                 git clone --depth=1 $_gitroot $_gitname
47         fi
48         msg "GIT checkout done or server timeout"
49         msg "Starting make..."
50         cd "$srcdir/$_gitname"
51         cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo .
52         make 
55 package() {
56         cd "$srcdir/$_gitname"
57         make DESTDIR=$pkgdir install