dwarfpp: package with headers

This commit is contained in:
Théophile Bastian 2018-07-02 12:51:44 +02:00
parent 48f653ee28
commit 2f79c5c005

View file

@ -13,9 +13,11 @@ depends=(libcxxfileno libsrk31cxx libdwarf)
makedepends=('git' 'make' 'autoconf') makedepends=('git' 'make' 'autoconf')
install= install=
source=("git+https://github.com/stephenrkell/libdwarfpp" source=("git+https://github.com/stephenrkell/libdwarfpp"
"https://tobast.fr/files/libdwarfpp-dies.patch") "https://tobast.fr/files/libdwarfpp-dies.patch"
"https://tobast.fr/files/libdwarfpp-headers.patch")
sha1sums=('SKIP' sha1sums=('SKIP'
'1bfc0b66e1c6bb4b0e284e29a50a1b4be6b3aa50') '1bfc0b66e1c6bb4b0e284e29a50a1b4be6b3aa50'
'bb6d91dc75981484814412382102c3c32664eeb5')
pkgver() { pkgver() {
cd "$srcdir/${_pkgname}" cd "$srcdir/${_pkgname}"
@ -25,6 +27,8 @@ pkgver() {
prepare() { prepare() {
cd "$srcdir/${_pkgname}" cd "$srcdir/${_pkgname}"
git apply ../libdwarfpp-dies.patch git apply ../libdwarfpp-dies.patch
git apply ../libdwarfpp-headers.patch
sed -i 's@libdwarf.h@libdwarf/libdwarf.h@' include/dwarfpp/libdwarf.hpp
} }
build() { build() {
@ -65,7 +69,7 @@ build() {
--with-libdwarf-libs="$libdwarf_lib" --with-libdwarf-libs="$libdwarf_lib"
make -j make -j
rm -f "$pydir" rm -fr "$pydir"
} }
package() { package() {