1 # Maintainer: Sara <sara at archlinux dot us>
6 pkgdesc="A fast and simple Quran viewer"
8 url="http://noor.sf.net/cnoor.html"
11 optdepends=('gtk2: to run in X11' \
12 'ttf-sil-scheherazade: quran font' \
13 'ttf-dejavu: reader font')
17 install=${pkgname}.install
20 md5sums=('a8f8719add1fedf9f65d4c5a1aa57e30'
21 'c5e914abff7843191998a5a3da0c386d')
23 _gitroot=git://repo.or.cz/cnoor.git
28 msg "Connecting to GIT server...."
30 if [[ -d ${_gitname} ]]; then
33 msg "The local files are updated."
35 git clone "${_gitroot}"
38 msg "Checkout done or server timeout"
39 rm -rf "${srcdir}/${_gitname}-build"
40 git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
41 cd "${srcdir}/${_gitname}-build"
43 cp "${srcdir}"/config.h config.h
45 msg "Starting make..."
50 install -Dm755 "${srcdir}/${_gitname}-build/${_gitname}" "${pkgdir}/usr/bin/${_gitname}"
52 install -Dm644 "${srcdir}/${_gitname}.1" "$pkgdir/usr/share/man/man1/${_gitname}.1"
55 # vim:set ts=2 sw=2 et: