updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / blinky / PKGBUILD
blobd11dc606f13d53eb33f1a97574be9289c604610d
1 # pkgbuild made by hunterm <hunterm.haxxr at gmail dot com>
3 pkgname=blinky
4 pkgver=20101110
5 pkgrel=1
6 pkgdesc="A GUI for pacman and the AUR made in Bash!"
7 arch=('any')
8 url="http://github.com/hunterm/blinky"
9 license=('GPL2')
10 depends=('bash' 'zenity' 'coreutils' 'sed' 'packer' 'pkgtools')
11 _gitroot="git://github.com/hunterm/blinky.git"
12 _gitname="blinky"
14 build() {
15         cd "$srcdir"
16   msg "Connecting to GIT server...."
18   if [[ -d $_gitname ]] ; then
19     cd $_gitname && git pull origin
20     msg "The local files are updated."
21   else
22     git clone $_gitroot $_gitname
23   fi
25   msg "GIT checkout done or server timeout"
28 package() {
29         cd ${srcdir}/${pkgname}
31         # install the icon
32         install -Dm644 ${pkgname}.png ${pkgdir}/usr/share/${pkgname}/${pkgname}.png
34         # install the main executable
35         install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
37         # install the .desktop file
38         install -Dm644 Blinky.desktop ${pkgdir}/usr/share/applications/Blinky.desktop