jrnl-venv-bin: 2.0.1-1

This commit is contained in:
Felipe Martin 2019-10-06 11:15:14 +02:00
parent d9ac874924
commit e343cbe229
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
4 changed files with 48 additions and 2 deletions

View File

@ -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

View File

@ -0,0 +1,32 @@
# Maintainer: Felipe Martin <me@fmartingr.com>
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"
}

View File

@ -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"

View File

@ -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() {