Skip to content

Instantly share code, notes, and snippets.

@barraponto barraponto/PKGBUILD Secret
Created Feb 14, 2019

Embed
What would you like to do?
diff -ura --color linuxdcpp-1.1.0/SConstruct linuxdcpp-1.1.0-patched/SConstruct
--- linuxdcpp-1.1.0/SConstruct 2011-04-17 14:57:09.000000000 -0300
+++ linuxdcpp-1.1.0-patched/SConstruct 2019-02-14 11:02:27.916181107 -0200
@@ -18,8 +18,8 @@
BUILD_LOCALE_PATH = BUILD_PATH + 'locale/'
BUILD_FLAGS = {
- 'common' : ['-I#', '-D_GNU_SOURCE', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_REENTRANT'],
- 'debug' : ['-g', '-ggdb', '-Wall', '-D_DEBUG'],
+ 'common' : ['-I#', '-D_GNU_SOURCE', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_REENTRANT', '-std=gnu++98', '-L/usr/lib/openssl-1.0', '-I/usr/include/openssl-1.0'],
+ 'debug' : ['-g', '-ggdb', '-Wall', '-D_DEBUG'],
'release' : ['-O3', '-fomit-frame-pointer', '-DNDEBUG']
}
@@ -208,7 +208,7 @@
print '\tNote: You might have the lib but not the headers'
Exit(1)
-
+
if not conf.CheckCXXHeader('boost/version.hpp', '<>'):
print '\tboost not found.'
print '\tNote: You might have the lib but not the headers'
# Contributor: SpepS <dreamspepser at yahoo dot it>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Tom K <tom@archlinux.org>
pkgname=linuxdcpp
pkgver=1.1.0
pkgrel=7
pkgdesc="A Gtk+ Direct Connect client based on DC++."
url="https://launchpad.net/linuxdcpp/"
license=('GPL')
arch=('i686' 'x86_64')
depends=('openssl' 'glib2' 'libglade' 'bzip2' 'libnotify' 'hicolor-icon-theme')
makedepends=('scons' 'boost')
conflicts=('linuxdcpp-bzr')
source=(
"$url${pkgver%%.?}/$pkgver/+download/$pkgname-$pkgver.tar.bz2"
"linuxdcpp-sconstruct.patch"
)
md5sums=('037de708bdb1e5dd7ac6c359b0e2c1a0'
'3e631a979470890481667be91cb69d10')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
patch -Np1 -i "$srcdir/linuxdcpp-sconstruct.patch"
}
build() {
cd "$srcdir/$pkgname-$pkgver"
scons PREFIX=/usr
}
package() {
cd "$srcdir/$pkgname-$pkgver"
scons install FAKE_ROOT="$pkgdir/"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.