diff options
author | Ivan Kuraj | 2019-02-15 11:10:16 -0500 |
---|---|---|
committer | Ivan Kuraj | 2019-02-15 11:10:16 -0500 |
commit | 02f96bcd794429d21314b222f8c1f0b93e58e3c5 (patch) | |
tree | bae2b1b53d6fe801e62a9a874b02366b1f1df0ee | |
parent | 7d8a877e641d89f8afdaec5b3f72b08684e10c65 (diff) | |
download | aur-02f96bcd794429d21314b222f8c1f0b93e58e3c5.tar.gz |
Add patch
-rw-r--r-- | PKGBUILD | 13 | ||||
-rw-r--r-- | linuxdcpp-sconstruct.patch | 23 |
2 files changed, 34 insertions, 2 deletions
@@ -12,8 +12,17 @@ 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") -md5sums=('037de708bdb1e5dd7ac6c359b0e2c1a0') +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" diff --git a/linuxdcpp-sconstruct.patch b/linuxdcpp-sconstruct.patch new file mode 100644 index 000000000000..6bf617279a4d --- /dev/null +++ b/linuxdcpp-sconstruct.patch @@ -0,0 +1,23 @@ +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' |