core/wvstreams/PKGBUILD

49 lines
1.5 KiB
Bash
Raw Normal View History

2011-02-21 16:30:01 +08:00
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas[at]chakra-project[dot]org>
2011-02-21 16:30:01 +08:00
pkgname=wvstreams
pkgver=4.6.1
pkgrel=2
2011-02-21 16:30:01 +08:00
pkgdesc="A network programming library written in C++"
arch=('x86_64')
2011-02-21 16:30:01 +08:00
url="http://alumnit.ca/wiki/?page=WvStreams"
license=('LGPL')
depends=('zlib' 'pam' 'xplc' "openssl" 'readline')
source=("http://wvstreams.googlecode.com/files/${pkgname}-${pkgver}.tar.gz"
'wvstreams-4.6.1-glibc212.patch'
'wvstreams-4.6.1-gcc47.patch'
'openssl-buildfix.patch')
2011-02-21 16:30:01 +08:00
md5sums=('2760dac31a43d452a19a3147bfde571c'
'5f6e24864209055239cb4e7c9bbd4a41'
'217e5dedd7f1d50588a5a67d637fc8a1'
'df423c68134a09439b3961c34635e0b4')
2011-02-21 16:30:01 +08:00
options=('!makeflags')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
patch -p0 -i "$srcdir/wvstreams-4.6.1-glibc212.patch"
patch -p0 -i "$srcdir/wvstreams-4.6.1-gcc47.patch"
patch -p1 -i "$srcdir/openssl-buildfix.patch"
2011-02-21 16:30:01 +08:00
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--without-dbus \
--with-pam \
--with-openssl \
--without-tcl \
--without-qt
make COPTS="$CFLAGS -fPIC" CXXOPTS="$CXXFLAGS -fPIC -fpermissive -fno-tree-dce -fno-optimize-sibling-calls" VERBOSE=1
2011-02-21 16:30:01 +08:00
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
2011-02-21 16:30:01 +08:00
# --without-dbus still installs the pkg-config file
rm ${pkgdir}/usr/lib/pkgconfig/libwvdbus.pc
# --without-qt still installs the pkg-config file
rm ${pkgdir}/usr/lib/pkgconfig/libwvqt.pc
}