[arch-commits] Commit in libelfin/repos (3 files)
Anatol Pomozov
anatolik at archlinux.org
Sun Nov 24 22:56:58 UTC 2019
Date: Sunday, November 24, 2019 @ 22:56:57
Author: anatolik
Revision: 533107
archrelease: copy trunk to community-x86_64
Added:
libelfin/repos/community-x86_64/
libelfin/repos/community-x86_64/PKGBUILD
(from rev 533106, libelfin/trunk/PKGBUILD)
libelfin/repos/community-x86_64/reproducible.patch
(from rev 533106, libelfin/trunk/reproducible.patch)
--------------------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
reproducible.patch | 46 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 76 insertions(+)
Copied: libelfin/repos/community-x86_64/PKGBUILD (from rev 533106, libelfin/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2019-11-24 22:56:57 UTC (rev 533107)
@@ -0,0 +1,30 @@
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail>
+
+pkgname=libelfin
+pkgver=0.3
+pkgrel=1
+pkgdesc='C++11 ELF/DWARF parser'
+arch=(x86_64)
+url='https://github.com/aclements/libelfin'
+license=(MIT)
+depends=(gcc-libs)
+makedepends=(python)
+source=(libelfin-$pkgver.zip::https://github.com/aclements/libelfin/archive/v$pkgver.zip
+ reproducible.patch)
+sha256sums=('e85c9edd583a59a08b97c34e5f385162fb32135cd09977aaefbc1bbcac9d51e7'
+ '152a7eab55b4de3cefa0020066ff82bdbc307a695bfe8362d4d8055cbbf654d8')
+
+prepare() {
+ cd libelfin-$pkgver
+ patch -p1 < ../reproducible.patch
+}
+
+build() {
+ cd libelfin-$pkgver
+ VER=$pkgver make
+}
+
+package() {
+ cd libelfin-$pkgver
+ VER=$pkgver PREFIX=$pkgdir/usr make install
+}
Copied: libelfin/repos/community-x86_64/reproducible.patch (from rev 533106, libelfin/trunk/reproducible.patch)
===================================================================
--- community-x86_64/reproducible.patch (rev 0)
+++ community-x86_64/reproducible.patch 2019-11-24 22:56:57 UTC (rev 533107)
@@ -0,0 +1,46 @@
+diff --git a/Makefile b/Makefile
+index 30c8a14..c3311a2 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,3 +1,5 @@
++export
++
+ all:
+ $(MAKE) -C elf
+ $(MAKE) -C dwarf
+diff --git a/dwarf/Makefile b/dwarf/Makefile
+index 71456bd..707b412 100644
+--- a/dwarf/Makefile
++++ b/dwarf/Makefile
+@@ -43,14 +43,13 @@ CLEAN += libdwarf++.so
+ # Create pkg-config for local library and headers. This will be
+ # transformed in to the correct global pkg-config by install.
+ libdwarf++.pc: always
+- @(VER=$$(git describe --match 'v*' | sed -e s/^v//); \
+- echo "libdir=$$PWD"; \
++ @(echo "libdir=$$PWD"; \
+ echo "includedir=$$PWD"; \
+ echo ""; \
+ echo "Name: libdwarf++"; \
+ echo "Description: C++11 DWARF library"; \
+- echo "Version: $$VER"; \
+- echo "Requires: libelf++ = $$VER"; \
++ echo "Version: $(VER)"; \
++ echo "Requires: libelf++ = $(VER)"; \
+ echo "Libs: -L\$${libdir} -ldwarf++"; \
+ echo "Cflags: -I\$${includedir}") > $@
+ CLEAN += libdwarf++.pc
+diff --git a/elf/Makefile b/elf/Makefile
+index 9c7c224..42061b7 100644
+--- a/elf/Makefile
++++ b/elf/Makefile
+@@ -42,8 +42,7 @@ CLEAN += libelf++.so
+ # Create pkg-config for local library and headers. This will be
+ # transformed in to the correct global pkg-config by install.
+ libelf++.pc: always
+- @(VER=$$(git describe --match 'v*' | sed -e s/^v//); \
+- echo "libdir=$$PWD"; \
++ @(echo "libdir=$$PWD"; \
+ echo "includedir=$$PWD"; \
+ echo ""; \
+ echo "Name: libelf++"; \
More information about the arch-commits
mailing list