1
0

Add seafile.install to git and PKGBUILD

This commit is contained in:
2013-06-19 07:13:17 -04:00
parent a4dd162844
commit c446363a38
2 changed files with 46 additions and 3 deletions

41
seafile.install Executable file

@ -0,0 +1,41 @@
## arg 1: the new package version
pre_install() {
virtualenv2 --system-site-packages /usr/lib/seafile/seafileenv
virtualenv2 --relocatable /usr/lib/seafile/seafileenv
source /usr/lib/seafile/seafileenv/bin/activate
pip install django==1.3.1
pip install djangorestframework
deactivate
}
#pacman complains if these functions don't exist, so we might as well
#appease it.
## arg 1: the new package version
post_install() {
echo " " > /dev/null
}
## arg 1: the new package version
## arg 2: the old package version
pre_upgrade() {
echo " " > /dev/null
}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
echo " " > /dev/null
}
## arg 1: the old package version
pre_remove() {
echo " " > /dev/null
}
## arg 1: the old package version
post_remove() {
rm -rf /usr/lib/seafile/seafileenv
}
# vim:set ts=2 sw=2 et: