From 2f104ecf78d6a93ba8d67273b76364cb1365a6cf Mon Sep 17 00:00:00 2001 From: root Date: Fri, 18 May 2012 00:02:20 +0000 Subject: Fri May 18 00:02:20 UTC 2012 --- extra/ccrtp/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ extra/ccrtp/ccrtp.install | 22 ++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 extra/ccrtp/PKGBUILD create mode 100644 extra/ccrtp/ccrtp.install (limited to 'extra/ccrtp') diff --git a/extra/ccrtp/PKGBUILD b/extra/ccrtp/PKGBUILD new file mode 100644 index 000000000..5901e29ed --- /dev/null +++ b/extra/ccrtp/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 159161 2012-05-16 20:49:22Z andrea $ +# Maintainer: +# Contributor: Sergej Pupykin +# Contributor: Jeff Mickey +# Contributor: John Proctor +# Contributor: Alexander Rødseth + +pkgname=ccrtp +pkgver=2.0.3 +pkgrel=2 +pkgdesc="An implementation of RTP, the real-time transport protocol from the IETF" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/ccrtp/" +license=('GPL' 'custom') +depends=('ucommon' 'libgcrypt') +options=('!libtool') +install=$pkgname.install +source=("ftp://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig}) +md5sums=('0d57da1b8e212fb634b8951067fbc1e0' + '127fa3b293f7a7c3be1d2891c4544453') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + + install -Dm644 COPYING.addendum "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/extra/ccrtp/ccrtp.install b/extra/ccrtp/ccrtp.install new file mode 100644 index 000000000..51b971c5c --- /dev/null +++ b/extra/ccrtp/ccrtp.install @@ -0,0 +1,22 @@ +infodir=usr/share/info +filelist=(ccrtp.info) + +post_install() { + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null + done +} + +post_upgrade() { + post_install "$1" +} + +pre_remove() { + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null + done +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf