jrnl-venv-bin 2.0.0-1

This commit is contained in:
Felipe Martin 2019-09-24 17:55:20 +02:00
parent ebdec4beca
commit d9ac874924
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
5 changed files with 11 additions and 8 deletions

View File

@ -4,6 +4,7 @@ Helpers to generate AUR packages for Arch Linux.
## Provded packages
| Name | Version | Link |
| -------------- | ----------- | -------------------------------------------------------------- |
| Synology Drive | 2.0.0-11050 | [AUR](https://aur.archlinux.org/packages/synology-drive/) |
| Name | Version | URL | AUR |
| -------------------- | ----------- | ---------------------------------------------------------------------- | --------------------------------------------------------- |
| Jrnl (isolated venv) | 2.0.0-1 | [jrnl.sh](https://jrnl.sh) | [AUR](https://aur.archlinux.org/packages/jrnl-venv-bin) |
| Synology Drive | 2.0.0-11050 | [Synology Drive](https://www.synology.com/en-global/dsm/feature/drive) | [AUR](https://aur.archlinux.org/packages/synology-drive/) |

View File

@ -1,5 +1,5 @@
pkgbase = jrnl-venv-bin
pkgdesc = Collect your thoughts and notes without leaving the command line. [installed inside a virtualenv]
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.0
pkgrel = 1
url = https://jrnl.sh/

View File

@ -3,7 +3,7 @@
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]"
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')
@ -27,5 +27,6 @@ package() {
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"
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,7 +1,7 @@
name = "jrnl-venv-bin"
version = "2.0.0"
build_number = "1"
description = "Collect your thoughts and notes without leaving the command line. [installed inside a virtualenv]"
description = "Collect your thoughts and notes without leaving the command line. [installed inside a virtualenv to prevent depedencies directly on the system]"
license = "MIT"
url = "https://jrnl.sh/"
depends = ["python", "python-virtualenv", "python-pip"]

View File

@ -17,7 +17,8 @@ package() {
cd "$pkgdir/" || exit
mkdir -p usr/local/bin
{% for binary in builder.binaries -%}
ln -s "$prgdir/opt/{{ name }}/venv/bin/{{ binary }}" "$pkgdir/usr/local/bin/{{ binary }}"
ln -s "/opt/{{ name }}/venv/bin/{{ binary }}" "$pkgdir/usr/local/bin/{{ binary }}"
sed -i "1s/.*/#!\/opt\/{{ name }}\/venv\/bin\/python/" "opt/{{ name }}/venv/bin/{{ binary }}"
{%- endfor %}
}