diff --git a/wvdial/PKGBUILD b/wvdial/PKGBUILD new file mode 100644 index 000000000..f0d6c49ec --- /dev/null +++ b/wvdial/PKGBUILD @@ -0,0 +1,27 @@ +# +# Chakra Packages for Chakra, part of chakra-project.org +# +# maintainer (i686): Phil Miller +# maintainer (x86_64): Manuel Tortosa + +# Note: it will fail once. Run it again to compile. + +pkgname=wvdial +pkgver=1.61 +pkgrel=1 +pkgdesc="A dialer program to connect to the Internet" +url="http://alumnit.ca/wiki/index.php?page=WvDial" +arch=('i686' 'x86_64') +license=('custom') +depends=('wvstreams>=4.6.1' 'ppp') +source=(http://wvstreams.googlecode.com/files/${pkgname}-${pkgver}.tar.gz) +md5sums=('acd3b2050c9b65fff2aecda6576ee7bc') + +build() { + unset LDFLAGS + cd ${srcdir}/${pkgname}-${pkgver} + ./configure + make || return 1 + make prefix=${pkgdir}/usr PPPDIR=${pkgdir}/etc/ppp/peers install || return 1 + install -Dm644 COPYING.LIB ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} \ No newline at end of file diff --git a/wvstreams/PKGBUILD b/wvstreams/PKGBUILD new file mode 100644 index 000000000..e0dc7a17b --- /dev/null +++ b/wvstreams/PKGBUILD @@ -0,0 +1,44 @@ +# +# Chakra Packages for Chakra, part of chakra-project.org +# +# maintainer (i686): Phil Miller +# maintainer (x86_64): Manuel Tortosa + +pkgname=wvstreams +pkgver=4.6.1 +pkgrel=1 +pkgdesc="A network programming library written in C++" +arch=('i686' 'x86_64') +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 + gcc-4.5.1.patch) +md5sums=('2760dac31a43d452a19a3147bfde571c' + 'ce642b80f787e61038c2dea04d2f0635') +options=('!makeflags') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + patch -Np0 -i $startdir/gcc-4.5.1.patch + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --without-dbus \ + --with-pam \ + --with-openssl \ + --without-tcl \ + --without-qt || return 1 + make COPTS="$CFLAGS -fPIC" CXXOPTS="$CXXFLAGS -fPIC -fpermissive" VERBOSE=1 || return 1 +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install || return 1 + + # FS#15974 + # --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 +} \ No newline at end of file diff --git a/wvstreams/gcc-4.5.1.patch b/wvstreams/gcc-4.5.1.patch new file mode 100644 index 000000000..b368526d8 --- /dev/null +++ b/wvstreams/gcc-4.5.1.patch @@ -0,0 +1,22 @@ +http://bugs.gentoo.org/333301 + +--- ipstreams/wvunixdgsocket.cc ++++ ipstreams/wvunixdgsocket.cc +@@ -1,5 +1,5 @@ + #include "wvunixdgsocket.h" +-#ifdef MACOS ++#if defined(MACOS) || defined(__GNUC__) + #include + #include + #endif +--- streams/wvatomicfile.cc ++++ streams/wvatomicfile.cc +@@ -11,7 +11,8 @@ + #include "wvfileutils.h" + #include "wvstrutils.h" + +-#ifdef MACOS ++#if defined(MACOS) || defined(__GNUC__) ++#include + #include + #endif diff --git a/xplc/PKGBUILD b/xplc/PKGBUILD new file mode 100644 index 000000000..5a57b86fd --- /dev/null +++ b/xplc/PKGBUILD @@ -0,0 +1,32 @@ +# +# Chakra Packages for Chakra, part of chakra-project.org +# +# maintainer (i686): Phil Miller +# maintainer (x86_64): Manuel Tortosa + +pkgname=xplc +pkgver=0.3.13 +pkgrel=1 +pkgdesc="Cross-Platform Lightweight Components" +arch=(i686 x86_64) +url="http://xplc.sourceforge.net" +license=('LGPL') +depends=('gcc-libs') +source=(http://downloads.sourceforge.net/sourceforge/xplc/$pkgname-$pkgver.tar.gz) +md5sums=('39da3270527c8712b8e8fcf03768d29f') + +build() { + cd $srcdir/$pkgname-$pkgver + + export LDFLAGS="${LDFLAGS//-Wl,--as-needed}" + + ./configure --prefix=/usr --mandir=/usr/share/man --without-libuuid + make +} + +package() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir install + mv $pkgdir/usr/share/man/man1/{uuidgen.1,uuidcdef.1} + rm -f $pkgdir/usr/bin/uuidgen +} \ No newline at end of file