diff --git a/README.md b/README.md index b19ac2c..aa2afc4 100644 --- a/README.md +++ b/README.md @@ -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/) | diff --git a/jrnl-venv-bin/builds/2.0.0-1/.SRCINFO b/jrnl-venv-bin/builds/2.0.0-1/.SRCINFO index 5aa80ef..4228d2a 100644 --- a/jrnl-venv-bin/builds/2.0.0-1/.SRCINFO +++ b/jrnl-venv-bin/builds/2.0.0-1/.SRCINFO @@ -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/ diff --git a/jrnl-venv-bin/builds/2.0.0-1/PKGBUILD b/jrnl-venv-bin/builds/2.0.0-1/PKGBUILD index 362b030..d1d47a8 100644 --- a/jrnl-venv-bin/builds/2.0.0-1/PKGBUILD +++ b/jrnl-venv-bin/builds/2.0.0-1/PKGBUILD @@ -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" } diff --git a/jrnl-venv-bin/package.toml b/jrnl-venv-bin/package.toml index 831b2cb..f03da49 100644 --- a/jrnl-venv-bin/package.toml +++ b/jrnl-venv-bin/package.toml @@ -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"] diff --git a/templates/PKGBUILD.python-virtualenv.j2 b/templates/PKGBUILD.python-virtualenv.j2 index f981875..8a55b74 100644 --- a/templates/PKGBUILD.python-virtualenv.j2 +++ b/templates/PKGBUILD.python-virtualenv.j2 @@ -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 %} }