From 16e845de1bbf76ab48a02bfaa21730f45e6afaaa Mon Sep 17 00:00:00 2001 From: root Date: Mon, 13 Feb 2012 23:15:14 +0000 Subject: Mon Feb 13 23:15:14 UTC 2012 --- community/ccrtp/PKGBUILD | 37 ++++++++++++++++++++++--------------- community/ccrtp/ccrtp.install | 22 ++++++++++++++++++++++ 2 files changed, 44 insertions(+), 15 deletions(-) create mode 100644 community/ccrtp/ccrtp.install (limited to 'community/ccrtp') diff --git a/community/ccrtp/PKGBUILD b/community/ccrtp/PKGBUILD index 13ac0026b..c95d26ca8 100644 --- a/community/ccrtp/PKGBUILD +++ b/community/ccrtp/PKGBUILD @@ -1,34 +1,41 @@ -# $Id: PKGBUILD 47033 2011-05-14 10:27:41Z jelle $ +# $Id: PKGBUILD 64382 2012-02-12 15:47:02Z arodseth $ # Maintainer: Sergej Pupykin -# Contributor: # Contributor: Jeff Mickey # Contributor: John Proctor +# Contributor: Alexander Rødseth pkgname=ccrtp pkgver=1.8.0 -pkgrel=1 +pkgrel=2 pkgdesc="GNU ccRTP" -arch=('i686' 'x86_64') -url="http://www.gnu.org/software/ccrtp" +arch=('x86_64' 'i686') +url="http://www.gnu.org/software/ccrtp/" license=('GPL' 'custom') depends=('commoncpp2' 'zlib' 'libxml2' 'libgcrypt') options=('!libtool') -source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz gcc46.patch) -md5sums=('3410d2f43a6a28679bd091ed8b2ed228' - '17ce9c79c4518f35f484b539bcff570d') +install=$pkgname.install +source=("ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz" + 'gcc46.patch') +sha256sums=('365feddd276c78104600204ae6db4e76c66036df1e5b905e855239daac6a2473' + '4ac9385228dc8b8893e0868d5a06477e4009e9fb2dc191460406da58fc6a6fb3') build() { - cd ${srcdir}/${pkgname}-${pkgver} - patch -Np1 -i $srcdir/gcc46.patch + cd "$srcdir/$pkgname-$pkgver" + + patch -Np1 -i "$srcdir/gcc46.patch" # arch64 fix from Mandriva [ "$CARCH" == "x86_64" ] && export CXXFLAGS="$CXXFLAGS -fpermissive" - ./configure --prefix=/usr + export LDFLAGS="$LDFLAGS `pkg-config --libs libccgnu2`" + ./configure --prefix=/usr --mandir=/usr/share/man make } package() { - cd ${srcdir}/${pkgname}-${pkgver} - make DESTDIR=${pkgdir} install - install -D -m644 COPYING.addendum ${pkgdir}/usr/share/licenses/$pkgname/LICENSE - rm -rf ${pkgdir}/usr/share/info/dir + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install + install -Dm644 COPYING.addendum "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + #rm -rf "$pkgdir/usr/share/info/dir" } + +# vim:set ts=2 sw=2 et: diff --git a/community/ccrtp/ccrtp.install b/community/ccrtp/ccrtp.install new file mode 100644 index 000000000..51b971c5c --- /dev/null +++ b/community/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