From e343cbe229d3b8fbc842cb7dd72645e81fa01a72 Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Sun, 6 Oct 2019 11:15:14 +0200 Subject: [PATCH] jrnl-venv-bin: 2.0.1-1 --- jrnl-venv-bin/builds/2.0.1-1/.SRCINFO | 14 +++++++++++ jrnl-venv-bin/builds/2.0.1-1/PKGBUILD | 32 +++++++++++++++++++++++++ jrnl-venv-bin/package.toml | 2 +- templates/PKGBUILD.python-virtualenv.j2 | 2 +- 4 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 jrnl-venv-bin/builds/2.0.1-1/.SRCINFO create mode 100644 jrnl-venv-bin/builds/2.0.1-1/PKGBUILD diff --git a/jrnl-venv-bin/builds/2.0.1-1/.SRCINFO b/jrnl-venv-bin/builds/2.0.1-1/.SRCINFO new file mode 100644 index 0000000..e12a05b --- /dev/null +++ b/jrnl-venv-bin/builds/2.0.1-1/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = jrnl-venv-bin + pkgdesc = Collect your thoughts and notes without leaving the command line. [installed inside a virtualenv to prevent depedencies directly on the system] + pkgver = 2.0.1 + pkgrel = 1 + url = https://jrnl.sh/ + arch = i686 + arch = x86_64 + license = MIT + depends = python + depends = python-virtualenv + depends = python-pip + +pkgname = jrnl-venv-bin + diff --git a/jrnl-venv-bin/builds/2.0.1-1/PKGBUILD b/jrnl-venv-bin/builds/2.0.1-1/PKGBUILD new file mode 100644 index 0000000..6a1b502 --- /dev/null +++ b/jrnl-venv-bin/builds/2.0.1-1/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Felipe Martin + +pkgname="jrnl-venv-bin" +pkgver="2.0.1" +pkgrel="1" +pkgdesc="Collect your thoughts and notes without leaving the command line. [installed inside a virtualenv to prevent depedencies directly on the system]" +arch=('i686' 'x86_64') +url="https://jrnl.sh/" +license=('MIT') +depends=('python' 'python-virtualenv' 'python-pip') +optdepends=('') +conflicts=('') +source=() +md5sums=() + + +prepare() { + mkdir -p "$srcdir/jrnl-venv-bin" + cd "$srcdir/jrnl-venv-bin" || exit + python3 -m venv venv + source venv/bin/activate + pip install jrnl==2.0.1 +} + +package() { + mkdir "$pkgdir/opt" + cp -r "$srcdir/jrnl-venv-bin" "$pkgdir/opt/jrnl-venv-bin" + cd "$pkgdir/" || exit + mkdir -p usr/local/bin + ln -s "/opt/jrnl-venv-bin/venv/bin/jrnl" "$pkgdir/usr/local/bin/jrnl" + sed -i "1s/.*/#!\/opt\/jrnl-venv-bin\/venv\/bin\/python/" "opt/jrnl-venv-bin/venv/bin/jrnl" +} diff --git a/jrnl-venv-bin/package.toml b/jrnl-venv-bin/package.toml index f03da49..e9dacd2 100644 --- a/jrnl-venv-bin/package.toml +++ b/jrnl-venv-bin/package.toml @@ -1,5 +1,5 @@ name = "jrnl-venv-bin" -version = "2.0.0" +version = "2.0.1" build_number = "1" description = "Collect your thoughts and notes without leaving the command line. [installed inside a virtualenv to prevent depedencies directly on the system]" license = "MIT" diff --git a/templates/PKGBUILD.python-virtualenv.j2 b/templates/PKGBUILD.python-virtualenv.j2 index 8a55b74..199a36b 100644 --- a/templates/PKGBUILD.python-virtualenv.j2 +++ b/templates/PKGBUILD.python-virtualenv.j2 @@ -8,7 +8,7 @@ prepare() { cd "$srcdir/{{ name }}" || exit python3 -m venv venv source venv/bin/activate - pip install {{ builder.packages|join(" ") }} + pip install {{ builder.packages|join(" ") }}=={{ version }} } package() {