openbazaar: use bsdtar; move *.so to usr/lib/openbazaar

This commit is contained in:
Jürgen Buchmüller 2020-04-15 16:14:50 +02:00
parent 0c6ef02cbe
commit 74125d9487

View file

@ -23,9 +23,16 @@ fi
distfiles="https://github.com/OpenBazaar/OpenBazaar-Installer/releases/download/v${version}/${pkgname}_${version}_${_debarch}.deb"
do_install() {
ar p ${pkgname}_${version}_${_debarch}.deb data.tar.xz | tar xvJf - -C ${DESTDIR}
ar p ${pkgname}_${version}_${_debarch}.deb data.tar.xz | bsdtar xvf - -C ${DESTDIR}
vlicense ${DESTDIR}/usr/share/openbazaar/LICENSE
vbin ${DESTDIR}/usr/share/openbazaar/resources/OpenBazaar-Server/openbazaard
vconf ${DESTDIR}/usr/share/openbazaar/resources/OpenBazaar-Server/ob.cfg
vdoc ${FILESDIR}/void_service.EXAMPLE
find ${DESTDIR}/usr/share/openbazaar -iname "*.so" -print0 | while read -d "" lib; do
dir="${lib%/*}"
dir="${dir/\/share\//\/lib\/}"
mkdir -p "${dir}"
mv -v "${lib}" "${dir}"
done
}