void-packages/srcpkgs/openbazaar/template

32 lines
1.0 KiB
Bash

# Template file for 'openbazaar'
pkgname=openbazaar
version=1.1.10
revision=1
build_style=fetch
short_desc="P2P Distributed marketplace"
maintainer="ananteris <ananteris@protonmail.ch>"
only_for_archs="i686 x86_64"
depends="nodejs"
license="MIT"
nostrip=yes
homepage="http://openbazaar.org"
repository="nonfree"
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ];then
_debarch=amd64
checksum=0587b37baf4eebc447204883f021372bb6b1e1243f424d15aa13339d82428b47
else
_debarch=i386
checksum=813a35d6a9c1dd099f172812b6db124cd0ec38732f6dfce324f0f2895b03c53b
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}
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
}