summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Sun2019-01-06 20:11:30 -0500
committerAndrew Sun2019-01-06 20:11:30 -0500
commit714aa5c604d6af8030ac26a7407668114bb19b40 (patch)
treeadc9458a79c755a59aa1e7496b21865b7e8895b2
parent49846311a6cf9197a700cbd6cf7f41c6e40718a8 (diff)
downloadaur-714aa5c604d6af8030ac26a7407668114bb19b40.tar.gz
libbigwig: add full RELRO
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD17
-rw-r--r--libbigwig-flags.patch16
3 files changed, 30 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 022079918db..2e8bd244ec0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -8,7 +8,9 @@ pkgbase = libbigwig
license = MIT
depends = curl
source = libbigwig-0.4.2.tar.gz::https://github.com/dpryan79/libBigWig/archive/0.4.2.tar.gz
+ source = libbigwig-flags.patch
sha256sums = c32c655bf6e383226f76fd4052e0371848a274bc14502a0fe1b851b6d901c85b
+ sha256sums = 33be8bbc296c3ff022063d9907ad8975033cd47a5d91b052290507d531abd530
pkgname = libbigwig
diff --git a/PKGBUILD b/PKGBUILD
index b6298cef7fb..f6a8ffb3cfd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,19 +9,26 @@ arch=('i686' 'x86_64')
url="https://github.com/dpryan79/libBigWig"
depends=('curl')
license=('MIT')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/dpryan79/libBigWig/archive/${pkgver}.tar.gz")
-sha256sums=('c32c655bf6e383226f76fd4052e0371848a274bc14502a0fe1b851b6d901c85b')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/dpryan79/libBigWig/archive/${pkgver}.tar.gz"
+ "libbigwig-flags.patch")
+sha256sums=('c32c655bf6e383226f76fd4052e0371848a274bc14502a0fe1b851b6d901c85b'
+ '33be8bbc296c3ff022063d9907ad8975033cd47a5d91b052290507d531abd530')
+
+prepare() {
+ cd "${srcdir}/libBigWig-${pkgver}"
+ patch -Np1 -i "${srcdir}/libbigwig-flags.patch"
+}
build() {
- cd ${srcdir}/libBigWig-${pkgver}
+ cd "${srcdir}/libBigWig-${pkgver}"
make
}
package() {
- cd ${srcdir}/libBigWig-${pkgver}
+ cd "${srcdir}/libBigWig-${pkgver}"
make prefix=${pkgdir}/usr install
- install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
diff --git a/libbigwig-flags.patch b/libbigwig-flags.patch
new file mode 100644
index 00000000000..6e53ed78fc3
--- /dev/null
+++ b/libbigwig-flags.patch
@@ -0,0 +1,16 @@
+diff -Naur libBigWig-0.4.2.orig/Makefile libBigWig-0.4.2/Makefile
+--- libBigWig-0.4.2.orig/Makefile 2019-01-06 20:07:43.880826741 -0500
++++ libBigWig-0.4.2/Makefile 2019-01-06 20:08:34.784586373 -0500
+@@ -1,10 +1,10 @@
+ CC ?= gcc
+ AR ?= ar
+ RANLIB ?= ranlib
+-CFLAGS ?= -g -Wall -O3 -Wsign-compare
++CFLAGS += -g -Wall -O3 -Wsign-compare
+ LIBS = -lcurl -lm -lz
+ EXTRA_CFLAGS_PIC = -fpic
+-LDFLAGS =
++LDFLAGS +=
+ LDLIBS =
+ INCLUDES =
+