-
-
Save anonymous/7b252ea656b38b858cb3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Maintainer: IgnorantGuru http://igurublog.wordpress.com/contact-ignorantguru/ | |
| pkgname=sandfox | |
| pkgver=20130303 | |
| pkgrel=1 | |
| pkgdesc="Runs Firefox and other apps in a sandbox with limited access to the filesystem" | |
| arch=(any) | |
| license=('GPL3') | |
| url=("http://igurublog.wordpress.com/downloads/script-$pkgname/") | |
| depends=('inotify-tools') | |
| _gitroot="git://github.com/IgnorantGuru/sandfox.git" | |
| _gitname="sandfox" | |
| build() { | |
| cd "$srcdir" | |
| msg "Connecting to GIT server...." | |
| if [ -d $_gitname ] ; then | |
| cd $_gitname && git pull origin master | |
| msg "The local files are updated." | |
| else | |
| git clone --depth 1 -b master $_gitroot $_gitname | |
| fi | |
| msg "GIT checkout done or server timeout" | |
| msg "Starting make..." | |
| rm -rf "$srcdir/$_gitname-build" | |
| rm -rf "$srcdir/$_gitname/.git/shallow" | |
| git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" | |
| } | |
| package() { | |
| cd "$srcdir/$_gitname-build" | |
| install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment