diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-05-17 12:04:10 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2010-05-17 12:04:10 +0200 |
commit | 545b0b7de32c86264d4ec1eb7b7610e4c1c85946 (patch) | |
tree | 9ad399ce5176aee3c98f216f54a12a3e6d5290c6 /ffcast/PKGBUILD | |
parent | 8dc1d552c0bab7b72371c3a1529e365410c7548c (diff) | |
parent | ac57415603ea60e9af632e70827dffa22cfff584 (diff) | |
download | aur-packages-545b0b7de32c86264d4ec1eb7b7610e4c1c85946.tar.gz aur-packages-545b0b7de32c86264d4ec1eb7b7610e4c1c85946.tar.xz |
Merge branch 'master' of git://git.server-speed.net/~flo/git/aur
Diffstat (limited to 'ffcast/PKGBUILD')
-rw-r--r-- | ffcast/PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/ffcast/PKGBUILD b/ffcast/PKGBUILD new file mode 100644 index 0000000..d1bf09d --- /dev/null +++ b/ffcast/PKGBUILD @@ -0,0 +1,38 @@ +# Contributor: lolilolicon <lolilolicon{at}gmail{dot}com> + +pkgname=ffcast +pkgver=20091128 +pkgrel=1 +pkgdesc="bash script that takes screencast of given window area using ffmpeg/xwininfo/xrectsel" +arch=('i686' 'x86_64') +url="http://github.com/lolilolicon/ffcast" +license=('GPL v3') +makedepends=('git') +depends=('bash>=3.2' 'ffmpeg>=0.5' 'x264>=20090416' 'xorg-utils' 'bc') +source=() +md5sums=() + +_gitroot="git://github.com/lolilolicon/ffcast.git" +_gitname=master + +build() { + msg "Connecting to GIT server..." + if [ -d "$srcdir/$pkgname" ]; then + cd "$srcdir/$pkgname" && git pull origin $_gitname || return 1 + else + git clone "$_gitroot" "$srcdir/$pkgname" || return 1 + cd "$srcdir/$pkgname" && git checkout $_gitname || return 1 + fi + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + rm -rf "$srcdir/$pkgname-build" + git clone "$srcdir/$pkgname" "$srcdir/$pkgname-build" + cd "$srcdir/$pkgname-build" + + make || return 1 + make PREFIX=/usr DESTDIR="$pkgdir" install || return 1 +} + +# vim:set ts=2 sw=2 et: |