void-packages/srcpkgs/openbazaar/template
2016-07-13 10:24:30 -04:00

28 lines
820 B
Bash

# Template file for 'openbazaar'
pkgname=openbazaar
version=1.0.6
revision=1
build_style=fetch
short_desc="P2P Distributed marketplace"
maintainer="Ananteris <ananteris.disp@gmail.com>"
only_for_archs="i686 x86_64"
license="MIT"
nostrip=yes
homepage="http://openbazaar.org"
repository="nonfree"
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ];then
_debarch=amd64
checksum="92051986a773af50e0c96c4b3d2475a4420a6a661667b643f24cb6d9ddf69c20"
else
_debarch=i386
checksum="b7901d1291f7be0e25b3c550ac67edd6404afe6b8543671979febd10171f3839"
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
}