updated on Sat Jan 21 08:01:15 UTC 2012
[aur-mirror.git] / fbpad-git / PKGBUILD
blob67a5f431cc78e6190ad985500b3e2475229a3b69
1 # Maintainer: Sara <sara at archlinux dot us>
3 pkgname=fbpad-git
4 pkgver=20111205
5 pkgrel=1
6 pkgdesc="A small linux framebuffer virtual terminal, with 256 colors"
7 arch=('i686' 'x86_64')
8 url="http://repo.or.cz/w/fbpad.git"
9 license=('GPL')
10 optdepends=('ft2tf: TTF to tiny font converter')
11 makedepends=('git' 'ncurses')
12 provides=('fbpad')
13 conflicts=('fbpad')
14 source=('config.h'
15         'fbpad-256.info')
16 install=${pkgname}.install
17 md5sums=('e533aec27033997e2f2b2abdd43d9fa6'
18          '185b9d6ec1c539213226a3e2509c7ccd')
20 _gitroot=git://repo.or.cz/fbpad.git
21 _gitname=fbpad
23 build(){
24   cd "${srcdir}"
25   msg "Connecting to GIT server...."
26     
27   if [[ -d ${_gitname} ]]; then
28     cd "${_gitname}"
29     git pull origin
30     msg "The local files are updated."
31   else
32     git clone "${_gitroot}" -b bold
33     cd "${_gitname}"
34     git pull "${_gitroot}" master:origin
35   fi
36   msg "Checkout done or server timeout"
37   rm -rf "${srcdir}/${_gitname}-build"
38   git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
39   cd "${srcdir}/${_gitname}-build"
41   cp "${srcdir}"/config.h config.h
43   msg "Starting make..."
44   make
47 package(){
48   install -Dm755 "${srcdir}/${_gitname}-build/${_gitname}" "${pkgdir}/usr/bin/${_gitname}"
49   install -Dm644 "${srcdir}/${_gitname}-build/README" "${pkgdir}/usr/share/doc/${_gitname}/README"
50   # Compile terminfo
51   install -dm755 "${pkgdir}/usr/share/terminfo"
52   tic -x -o "${pkgdir}/usr/share/terminfo" "${_gitname}-256.info" 
55 # vim:set ts=2 sw=2 et: