forked from ilius/starcal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-archlinux
executable file
·49 lines (40 loc) · 1.18 KB
/
install-archlinux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
## makes PKGUILD and builds it (without root access), then installs it (prompts for password if necessary)
initPwd=$PWD
myPath="$0"
if [ "${myPath:0:2}" == "./" ] ; then
myPath=$initPwd${myPath:1}
elif [ "${myPath:0:1}" != "/" ] ; then
myPath=$initPwd/$myPath
fi
pkgName=starcal2
sourceDir="`dirname \"$myPath\"`"
"$sourceDir/scripts/assert_python2"
version=`$sourceDir/scal2/get_version.py`
tmpDir=/tmp/starcal2-install-arch
mkdir -p $tmpDir
cd $tmpDir
echo "# Contributor: Saeed Rasooli <saeed.gnu@gmail.com>
# This is a local PKGBUILD
sourceDir='$sourceDir'
pkgname=$pkgName
pkgver=$version
pkgrel=1
pkgdesc='A full-featured international calendar writen in Python'
arch=('any')
url=(http://starcal.sourceforge.net)
license=('GPLv3')
depends=('python2>=2.6' 'pygtk>=2.8' 'pygobject' 'python2-gflags' 'python2-httplib2' 'python2-pytz' 'python2-igraph')
optdepends=('python-gnomeapplet' 'python2-gnomevfs')
makedepends=()
conflicts=('starcal-git')
source=()
md5sums=()
build() {
\"\$sourceDir/install\" \"\$pkgdir\" --for-pkg
}" > PKGBUILD
makepkg -sif
cp $pkgName*.pkg.tar.?z "$initPwd"
echo "Package installed and copied into $initPwd directory"
cd "$initPwd"
rm -Rf $tmpDir