summaryrefslogtreecommitdiff
path: root/community/vyqchat/PKGBUILD
blob: e88e9f19f4b0cbbf978110c4bf810f4c27ff6feb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# $Id: PKGBUILD 14449 2010-04-03 16:01:29Z foutrelis $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=vyqchat
pkgver=0.2.8
pkgrel=3
pkgdesc="vypress compatible qt chat (can work without server)"
arch=('i686' 'x86_64' 'mips64el')
url="http://linux.bydg.org/~yogin/"
license=('GPL')
depends=('qt3' 'libao' 'libxi')
source=(http://www.uic.unn.ru/~soed/programs/chat/$pkgname-$pkgver.tar.gz
	build-fix.patch)
md5sums=('67974bc5df1ed0d63785d04325444d4f' 'de3af70da3743c27929f04f72c837412')

build() {
  . /etc/profile.d/qt3.sh
  cd ${startdir}/src/$pkgname-${pkgver}
  patch -Np1 <../build-fix.patch
  # Use _LDADD to properly compile with --as-needed
  sed -i 's/vyqchat_LDFLAGS/vyqchat_LDADD/' src/Makefile.am || return 1
  # Correct acinclude.m4 to avoid empty else block
  sed -i 's:# Leave bnv_qt_lib_dir defined:/bin/true:' acinclude.m4 || return 1
  autoreconf -v || return 1
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install || return 1
}