PKGBUILDs/core/plugui-git/PKGBUILD

53 lines
1.2 KiB
Bash
Raw Normal View History

2011-03-19 03:44:22 +00:00
plugrel=1
pkgname=plugui-git
2011-04-06 02:53:56 +00:00
pkgver=201100405
2011-03-19 03:44:22 +00:00
pkgrel=1
pkgdesc="PlugApps web interface"
arch=('arm')
url="https://github.com/plugapps/PlugUI"
license=('GPL')
2011-03-23 22:30:45 +00:00
depends=('python2' 'cherrypy' 'django' 'python2-pytz')
2011-03-19 03:44:22 +00:00
makedepends=('git')
provides=('plugui')
conflicts=('plugui')
install=plugui.install
_gitroot="git://github.com/plugapps/PlugUI.git"
_gitname="PlugUI"
build() {
cd $srcdir
## Git checkout
if [ -d $srcdir/${_gitname} ] ; then
msg "Git checkout: Updating existing tree"
cd ${_gitname} && git pull
msg "Git checkout: Tree has been updated"
else
msg "Git checkout: Retrieving sources"
git clone --depth 1 ${_gitroot}
fi
msg "Checkout completed"
}
package() {
cd $srcdir/${_gitname}
# create directory structure
install -d $pkgdir/opt/PlugUI
install -d $pkgdir/var/run/PlugUI
install -d $pkgdir/var/lib/PlugUI
install -d $pkgdir/etc/cron.hourly
install -d $pkgdir/etc/rc.d
# copy everything
cp -a * $pkgdir/opt/PlugUI
# install cron and rc.d scripts
chmod +x $pkgdir/opt/PlugUI/plugmaintenance.py $pkgdir/opt/PlugUI/plugui.cherrypy
2011-03-23 22:30:45 +00:00
ln -s /opt/PlugUI/plugmaintenance.py $pkgdir/etc/cron.hourly/plugmaintenance
ln -s /opt/PlugUI/plugui.cherrypy $pkgdir/etc/rc.d/plugui
2011-03-19 03:44:22 +00:00
}