updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / gtkterm-git / PKGBUILD
blobbc72b9a90e3e414a0e963016923c9c65742e8440
2 pkgname=gtkterm-git
3 pkgver=20111008
4 pkgrel=1
5 pkgdesc="A gtk+ based serial port communication program"
6 arch=('i686' 'x86_64')
7 url="https://fedorahosted.org/gtkterm/"
8 license=('GPL')
9 depends=('gtk2>=2.6' 'vte>=0.20')
10 makedepends=('git' 'intltool' 'gnome-common')
11 provides=('gtkterm')
12 conflicts=('gtkterm')
14 source=('configure.ac.patch'
15         'Makevars')
16 md5sums=('d1b4c53570ff279b5f60037c820c035e'
17           '6034f4ece88754c0668953aae48e7bfd')
19 _gitroot="http://git.fedorahosted.org/git/gtkterm.git"
20 _gitname="gtkterm"
22 build() {
23         cd "${srcdir}"
24         msg "Connecting to GIT server..."
25         
26         if [ -d "${_gitname}" ] ; then
27                 cd "${_gitname}" && git fetch
28                 msg "The local files are updated."
29         else
30                 git clone --mirror "${_gitroot}" "${_gitname}"
31         fi
32         
33         msg "GIT checkout done or server timeout."
35         cd "${srcdir}"
37         if [ -d "${_gitname}-build" ]; then
38                 rm -rf "${_gitname}-build"
39         fi
41         git clone "${_gitname}" "${_gitname}-build"
43         cd "${_gitname}-build"
45         patch -p1 -i ../configure.ac.patch
46         cp ../Makevars po/
48         msg "Starting configure..."
49         ./autogen.sh --prefix=/usr --mandir=/usr/share/man
50         msg "Starting make..."
51         make
54 package() {
55         cd "${srcdir}/${_gitname}-build"
56         make DESTDIR="${pkgdir}" install
58         cd "${srcdir}"
59         rm -rf "${_gitname}-build"