
Updated xss-git PKGBUILD
By: a guest on
Jul 11th, 2010 | syntax:
Bash | size: 1.18 KB | hits: 82 | expires: Never
# Contributor: Scytrin dai Kinthra <scytrin@gmail.com>
pkgname=xss-git
pkgver=20100711
pkgrel=1
pkgdesc="A collection of small programs to compose your own screensaver or screenlocker."
arch=('i686' 'x86_64')
url="http://woozle.org/~neale/src/xss"
license=('GPL')
depends=()
makedepends=('git')
groups=()
conflicts=('xss')
provides=('xss')
source=()
md5sums=()
_gitroot="http://woozle.org/~neale/projects/xss"
_gitname="xss"
build() {
msg "Connecting to xss GIT server...."
if [ -d $startdir/src/$_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
if [ -d $startdir/src/$_gitname ]; then
rm -r $startdir/src/$_gitname-build || true
fi
cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
cd $startdir/src/$_gitname-build
make || return 1
for file in `find . -type f -perm /111`; do
install -m755 -D $file $startdir/pkg/usr/bin/$file
done
install -m644 -D README $startdir/pkg/usr/share/doc/$pkgname/README
install -m644 -D COPYING $startdir/pkg/usr/share/doc/$pkgname/COPYING
}