Commit 55672adf authored by Rafael Monnerat's avatar Rafael Monnerat

obs: Use python2 for arch linux.

parent e5042eb2
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
VERSION = %VERSION% VERSION = %VERSION%
RECIPE_VERSION = %RECIPE_VERSION% RECIPE_VERSION = %RECIPE_VERSION%
PY = $(PYTHON)
INSTALL_DIRECTORY = $(DESTDIR)/opt/slapos INSTALL_DIRECTORY = $(DESTDIR)/opt/slapos
TARGET_DIRECTORY = /opt/slapos TARGET_DIRECTORY = /opt/slapos
BUILD_ROOT_DIRECTORY := $(shell pwd)/build BUILD_ROOT_DIRECTORY := $(shell pwd)/build
...@@ -25,7 +26,7 @@ build-stamp: ...@@ -25,7 +26,7 @@ build-stamp:
@echo 'Preparing source tarball (recipe version: $(RECIPE_VERSION))' @echo 'Preparing source tarball (recipe version: $(RECIPE_VERSION))'
cd $(BUILD_DIRECTORY) && \ cd $(BUILD_DIRECTORY) && \
./bin/buildout -v $(PY) ./bin/buildout -v
@touch build-stamp @touch build-stamp
......
# Maintainer: Rafael Monnerat <rafael@nexedi.com> # Maintainer: Rafael Monnerat <rafael@nexedi.com>
pkgname=slapos-node pkgname=slapos-node
pkgver=%VERSION%+%RECIPE_VERSION%+%RELEASE% pkgver=%VERSION%+%RECIPE_VERSION%+%RELEASE%
pkgdesc="Slapos client" pkgdesc="Slapos node"
pkgrel=1
arch=('x86_64' 'i686') arch=('x86_64' 'i686')
url="http://www.slapos.org" url="http://www.slapos.org"
license=('GPL') license=('GPL')
depends=('gcc' 'make' 'patch' 'wget' 'python2' 'python2-distribute' 'bridge-utils') depends=('gcc' 'make' 'patch' 'wget' 'python2' 'python2-distribute' 'bridge-utils')
makedepends=('gcc' 'make' 'patch' 'wget' 'python2' 'python2-distribute' 'chrpath') makedepends=('gcc' 'make' 'patch' 'wget' 'python2' 'python2-distribute' 'chrpath' 'net-tools')
install='slapos-node.install' install='slapos-node.install'
source=($pkgname_$pkgver.tar.gz) source=($pkgname_$pkgver.tar.gz)
md5sums=() #generate with 'makepkg -g' md5sums=(%SOURCEMD5)
build() { build() {
cd "$srcdir/$pkgname_$pkgver" cd "$srcdir/$pkgname_$pkgver"
make make PYTHON=python2
} }
package() { package() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment