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