summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/python2-pysfml2-git/PKGBUILD49
-rw-r--r--pcr/sfml-git/PKGBUILD7
-rw-r--r--pcr/yate/PKGBUILD36
-rwxr-xr-xpcr/yate/yate.init61
4 files changed, 151 insertions, 2 deletions
diff --git a/pcr/python2-pysfml2-git/PKGBUILD b/pcr/python2-pysfml2-git/PKGBUILD
new file mode 100644
index 000000000..6bd8e759c
--- /dev/null
+++ b/pcr/python2-pysfml2-git/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Philippe Huerlimann <phihue@gmail.com>
+pkgname=python2-pysfml2-git
+pkgver=20120804
+pkgrel=1
+pkgdesc="A Python 2 binding for SFML 2, written with Cython."
+arch=('i686' 'x86_64')
+url="http://pysfml2-cython.readthedocs.org/"
+license=('BSD')
+depends=('sfml-git' 'python2')
+makedepends=('cython2' 'git')
+source=()
+md5sums=()
+_gitroot='https://github.com/bastienleonard/pysfml2-cython.git'
+_gitname='pysfml2-cython'
+
+build() {
+ cd "$srcdir"
+ msg "Connecting to GIT server...."
+
+ if [ -d $_gitname ] ; then
+ cd $_gitname && git pull origin
+ msg "The local files are updated."
+ else
+ git clone $_gitroot $_gitname
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting make..."
+
+ rm -rf "$srcdir/$_gitname-build"
+ git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+ cd "$srcdir/$_gitname-build"
+
+ python2 setup.py build
+}
+
+package() {
+ cd "$srcdir/$_gitname-build"
+ python2 setup.py install --root="${pkgdir}" --prefix=/usr
+
+ # Copying the examples
+ cp -R examples "${pkgdir}/usr/lib/python2.7/site-packages/pysfml"
+
+ # Copying the License file
+ install -D -m644 "$srcdir/$_gitname-build/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ # Fixing permissions
+ chmod 644 "${pkgdir}"/usr/lib/python2.7/site-packages/sfml.so
+}
diff --git a/pcr/sfml-git/PKGBUILD b/pcr/sfml-git/PKGBUILD
index b5c9e61fb..be243d639 100644
--- a/pcr/sfml-git/PKGBUILD
+++ b/pcr/sfml-git/PKGBUILD
@@ -2,8 +2,8 @@
# Contributor: Jorge Araya Navarro <jorgean@lavabit.com>
pkgname=sfml-git
-pkgver=20120803
-pkgrel=3
+pkgver=20120805
+pkgrel=1
pkgdesc='A simple, fast, cross-platform, and object-oriented multimedia API.'
arch=('i686' 'x86_64')
url='http://www.sfml-dev.org/'
@@ -16,6 +16,7 @@ source=("arial.patch")
_gitroot='https://github.com/LaurentGomila/SFML.git'
_gitname='SFML'
+_gitchangeset='191730ac0d639cfdef8fae560cdbc7d7e8c67db1'
build() {
cd "$srcdir"
@@ -33,6 +34,8 @@ build() {
msg "Starting make..."
rm -rf "$srcdir/$_gitname-build"
+ cd "$srcdir"
+ git checkout $_gitchangeset >& /dev/null
#Applying the patch
cp "$srcdir/arial.patch" "$srcdir/$_gitname/src/$_gitname/"
cd "$srcdir/$_gitname/src/$_gitname/"
diff --git a/pcr/yate/PKGBUILD b/pcr/yate/PKGBUILD
new file mode 100644
index 000000000..01428fa27
--- /dev/null
+++ b/pcr/yate/PKGBUILD
@@ -0,0 +1,36 @@
+ # Maintainer: said
+ # Contributor: Yejun Yang <yejunx AT gmail DOT com>
+ # Contributor: Biru Ionut <ionut@archlinux.ro>
+ pkgname=yate
+ pkgver=4.1.0
+ pkgrel=1
+ pkgdesc="next-generation telephony engine"
+ arch=('i686' 'x86_64')
+ url="http://yate.null.ro"
+ license=('GPL')
+ depends=('speex' 'gsm' 'postgresql-libs' 'libmysqlclient' \
+ 'alsa-lib')
+ makedepends=('pkgconfig')
+ source=(http://yate.null.ro/tarballs/yate4/${pkgname}-${pkgver}-1.tar.gz yate.init)
+ options=(!makeflags)
+
+ md5sums=('06adaa9b8dc4f18908b35e9659ab9ad5'
+ 'c0d344607046c47c1d75ac23d323817a')
+
+ build() {
+ cd $srcdir/${pkgname}
+ export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-libpq \
+ --with-mysql \
+ --without-openh323
+ make
+ }
+
+ package(){
+ cd $srcdir/${pkgname}
+ make DESTDIR=$pkgdir install
+ install -D -m755 $srcdir/yate.init $pkgdir/etc/rc.d/yate
+ }
+ \ No newline at end of file
diff --git a/pcr/yate/yate.init b/pcr/yate/yate.init
new file mode 100755
index 000000000..762fff8c7
--- /dev/null
+++ b/pcr/yate/yate.init
@@ -0,0 +1,61 @@
+#!/bin/bash
+OPTS="-rs -vvv -l /var/log/yate"
+
+# Source function library.
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+RETVAL=0
+
+# See how we were called.
+case "$1" in
+ start)
+ stat_busy "Starting YATE"
+ unset DISPLAY
+
+ yate -d -p /var/run/yate.pid $OPTS
+ RETVAL=$?
+ if [ $RETVAL -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon yate
+ touch /var/lock/yate
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping YATE"
+ [ -f /var/run/yate.pid ] && kill $(cat /var/run/yate.pid) > /dev/null 2>&1
+ RETVAL=$?
+ if [ $RETVAL -gt 0 ]; then
+ stat_fail
+ else
+ rm -f /var/run/yate.pid
+ rm -f /var/lock/yate
+ rm_daemon yate
+ stat_done
+ fi
+ ;;
+ status)
+ [ -f /var/run/yate.pid ] && echo -e "Yate is running" || echo -e "Yate is not running"
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $1 start
+ ;;
+ condrestart)
+ if [ -f /var/lock/yate ]; then
+ $0 stop
+ $0 start
+ fi
+ ;;
+ reload)
+ pkill yate -HUP
+ RETVAL=$?
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
+ ;;
+esac
+exit $RETVAL