jrnl-venv-bin 2.0.0-1

This commit is contained in:
Felipe Martin 2019-09-24 16:21:10 +02:00
parent b990b426fe
commit ebdec4beca
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
3 changed files with 45 additions and 0 deletions

1
.gitignore vendored
View File

@ -4,6 +4,7 @@
# Package builds
**/builds/**/src
**/builds/**/pkg
**/builds/**/*.tar.xz
# Python
*.pyc

View File

@ -0,0 +1,13 @@
pkgbase = jrnl-venv-bin
pkgdesc = Collect your thoughts and notes without leaving the command line. [installed inside a virtualenv]
pkgver = 2.0.0
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,31 @@
# Maintainer: Felipe Martin <me@fmartingr.com>
pkgname="jrnl-venv-bin"
pkgver="2.0.0"
pkgrel="1"
pkgdesc="Collect your thoughts and notes without leaving the command line. [installed inside a virtualenv]"
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
}
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 "$prgdir/opt/jrnl-venv-bin/venv/bin/jrnl" "$pkgdir/usr/local/bin/jrnl"
}