openbazaar: don't manually extract deb

This commit is contained in:
classabbyamp 2022-11-11 01:58:19 -05:00 committed by classabbyamp
parent 7d6f6bbfed
commit 36d4af6d68

View File

@ -3,7 +3,7 @@ pkgname=openbazaar
version=1.1.13
revision=2
archs="i686 x86_64"
build_style=fetch
create_wrksrc=yes
depends="nodejs"
short_desc="P2P Distributed marketplace"
maintainer="ananteris <ananteris@protonmail.ch>"
@ -22,11 +22,11 @@ case "${XBPS_TARGET_MACHINE}" in
;;
esac
distfiles="https://github.com/OpenBazaar/OpenBazaar-Installer/releases/download/v${version}/${pkgname}_${version}_${_debarch}.deb"
distfiles="https://github.com/OpenBazaar/OpenBazaar-Installer/releases/download/v${version}/openbazaar_${version}_${_debarch}.deb"
do_install() {
ar p ${pkgname}_${version}_${_debarch}.deb data.tar.xz | bsdtar xvf - -C ${DESTDIR}
vlicense ${DESTDIR}/usr/share/openbazaar/LICENSE
vcopy usr /
vlicense usr/share/openbazaar/LICENSE
vmkdir usr/lib/openbazaar/resources
mv -v ${DESTDIR}/usr/share/openbazaar/resources/OpenBazaar-Server \
${DESTDIR}/usr/lib/openbazaar/resources