summaryrefslogtreecommitdiffstats
path: root/ffcast
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-01-17 12:10:25 +0100
committerFlorian Pritz <bluewind@xssn.at>2010-01-17 12:10:25 +0100
commitca2d44a6820a66e074d753b32fdc7c3d86e58a3d (patch)
tree52965f85df44d83395189f88eab9e663154c5a8f /ffcast
parentdbd1c0d9ff79e45fe66955f48d87eb32c21965a2 (diff)
downloadaur-packages-ca2d44a6820a66e074d753b32fdc7c3d86e58a3d.tar.gz
aur-packages-ca2d44a6820a66e074d753b32fdc7c3d86e58a3d.tar.xz
some more updates/adds
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'ffcast')
-rw-r--r--ffcast/PKGBUILD38
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: