openbazaar: fix ftbfs
Move binaries to usr/lib/openbazaar and create symlinks in usr/bin
This commit is contained in:
parent
794bcb40c1
commit
7c8f4c06e6
|
@ -1,32 +1,42 @@
|
|||
# Template file for 'openbazaar'
|
||||
pkgname=openbazaar
|
||||
version=1.1.13
|
||||
revision=1
|
||||
revision=2
|
||||
archs="i686 x86_64"
|
||||
build_style=fetch
|
||||
depends="nodejs"
|
||||
short_desc="P2P Distributed marketplace"
|
||||
maintainer="ananteris <ananteris@protonmail.ch>"
|
||||
archs="i686 x86_64"
|
||||
depends="nodejs"
|
||||
license="MIT"
|
||||
nostrip=yes
|
||||
homepage="http://openbazaar.org"
|
||||
python_version=3
|
||||
nostrip=yes
|
||||
repository="nonfree"
|
||||
|
||||
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ];then
|
||||
_debarch=amd64
|
||||
checksum=34118eecedd15d89052b8cc6d08fb789adba5788d43019ea5c89e52f1f07064a
|
||||
else
|
||||
_debarch=i386
|
||||
checksum=87c73589aebdb78455e69fe1ccc058440d0ae662404e9ef7d4988e6c574e2add
|
||||
fi
|
||||
case "${XBPS_TARGET_MACHINE}" in
|
||||
x86_64) _debarch=amd64
|
||||
checksum=34118eecedd15d89052b8cc6d08fb789adba5788d43019ea5c89e52f1f07064a
|
||||
;;
|
||||
i686) _debarch=i386
|
||||
checksum=87c73589aebdb78455e69fe1ccc058440d0ae662404e9ef7d4988e6c574e2add
|
||||
;;
|
||||
esac
|
||||
|
||||
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 | 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
|
||||
vmkdir usr/lib/openbazaar/resources
|
||||
mv -v ${DESTDIR}/usr/share/openbazaar/resources/OpenBazaar-Server \
|
||||
${DESTDIR}/usr/lib/openbazaar/resources
|
||||
ln -frsv ${DESTDIR}/usr/lib/openbazaar/resources/OpenBazaar-Server/openbazaard \
|
||||
${DESTDIR}/usr/bin/
|
||||
vconf ${DESTDIR}/usr/lib/openbazaar/resources/OpenBazaar-Server/ob.cfg
|
||||
mv -v ${DESTDIR}/usr/share/openbazaar/openbazaar \
|
||||
${DESTDIR}/usr/lib/openbazaar
|
||||
ln -frsv ${DESTDIR}/usr/lib/openbazaar/openbazaar \
|
||||
${DESTDIR}/usr/bin/
|
||||
vdoc ${FILESDIR}/void_service.EXAMPLE
|
||||
|
||||
find ${DESTDIR}/usr/share/openbazaar -iname "*.so" -print0 | while read -d "" lib; do
|
||||
|
|
Loading…
Reference in New Issue