void-packages/srcpkgs/openbazaar/template
mollusk b6f9238d72 openbazaar: Update to 1.1.13
Closes: #7680 [via git-merge-pr]
2017-09-17 20:46:18 -07:00

31 lines
1 KiB
Bash

# Template file for 'openbazaar'
pkgname=openbazaar
version=1.1.13
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=34118eecedd15d89052b8cc6d08fb789adba5788d43019ea5c89e52f1f07064a
else
_debarch=i386
checksum=87c73589aebdb78455e69fe1ccc058440d0ae662404e9ef7d4988e6c574e2add
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
}