diff --git a/README.md b/README.md index 2b7e17c..ac7785f 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,6 @@ Helpers to generate AUR packages for Arch Linux. | Name | Version | URL | AUR | | ---------------------- | ----------- | ---------------------------------------------------------------------- | --------------------------------------------------------- | -| Conrad (isolated venv) | 0.2.0-2 | [vinayak-mehta/conrad](https://github.com/vinayak-mehta/conrad) | [AUR](https://aur.archlinux.org/packages/conrad-venv-bin) | +| Conrad (isolated venv) | 0.2.0-4 | [vinayak-mehta/conrad](https://github.com/vinayak-mehta/conrad) | [AUR](https://aur.archlinux.org/packages/conrad-venv-bin) | | Jrnl (isolated venv) | 2.0.1-1 | [jrnl.sh](https://jrnl.sh) | [AUR](https://aur.archlinux.org/packages/jrnl-venv-bin) | | Synology Drive | 2.0.1-11061 | [Synology Drive](https://www.synology.com/en-global/dsm/feature/drive) | [AUR](https://aur.archlinux.org/packages/synology-drive/) | diff --git a/conrad-venv-bin/builds/0.2.0-4/.SRCINFO b/conrad-venv-bin/builds/0.2.0-4/.SRCINFO new file mode 100644 index 0000000..a34befd --- /dev/null +++ b/conrad-venv-bin/builds/0.2.0-4/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = conrad-venv-bin + pkgdesc = conrad helps you track conferences and meetups on your terminal! [installed inside a virtualenv to prevent depedencies directly on the system] + pkgver = 0.2.0 + pkgrel = 4 + url = https://github.com/vinayak-mehta/conrad + arch = i686 + arch = x86_64 + license = MIT + depends = python + depends = python-virtualenv + depends = python-pip + +pkgname = conrad-venv-bin + diff --git a/conrad-venv-bin/builds/0.2.0-4/PKGBUILD b/conrad-venv-bin/builds/0.2.0-4/PKGBUILD new file mode 100644 index 0000000..b3c2cf7 --- /dev/null +++ b/conrad-venv-bin/builds/0.2.0-4/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Felipe Martin + +pkgname="conrad-venv-bin" +pkgver="0.2.0" +pkgrel="4" +pkgdesc="conrad helps you track conferences and meetups on your terminal! [installed inside a virtualenv to prevent depedencies directly on the system]" +arch=('i686' 'x86_64') +url="https://github.com/vinayak-mehta/conrad" +license=('MIT') +depends=('python' 'python-virtualenv' 'python-pip' ) +optdepends=() +conflicts=() +source=() +md5sums=() + + +prepare() { + mkdir -p "$srcdir/conrad-venv-bin" + cd "$srcdir/conrad-venv-bin" || exit + python3 -m venv venv + source venv/bin/activate + pip install conference-radar==0.2.0 +} + +package() { + mkdir "$pkgdir/opt" + cp -r "$srcdir/conrad-venv-bin" "$pkgdir/opt/conrad-venv-bin" + cd "$pkgdir/" || exit + mkdir -p usr/local/bin + ln -s "/opt/conrad-venv-bin/venv/bin/conrad" "$pkgdir/usr/local/bin/conrad" + sed -i "1s/.*/#!\/opt\/conrad-venv-bin\/venv\/bin\/python/" "opt/conrad-venv-bin/venv/bin/conrad" +} diff --git a/conrad-venv-bin/package.toml b/conrad-venv-bin/package.toml index fc98f2d..8748b3e 100644 --- a/conrad-venv-bin/package.toml +++ b/conrad-venv-bin/package.toml @@ -1,6 +1,6 @@ name = "conrad-venv-bin" version = "0.2.0" -build_number = "2" +build_number = "4" description = "conrad helps you track conferences and meetups on your terminal! [installed inside a virtualenv to prevent depedencies directly on the system]" license = "MIT" url = "https://github.com/vinayak-mehta/conrad" diff --git a/templates/PKGBUILD.base.j2 b/templates/PKGBUILD.base.j2 index d3bb2ed..a53c777 100644 --- a/templates/PKGBUILD.base.j2 +++ b/templates/PKGBUILD.base.j2 @@ -7,9 +7,9 @@ pkgdesc="{{ description }}" arch=('{{ arch|join("' '") }}') url="{{ url }}" license=('{{ license }}') -depends=('{{ depends|join("' '") }}') -optdepends=('{{ optdepends|join("' '") }}') -conflicts=('{{ conflicts|join("' '") }}') +depends=({% for depend in depends %}'{{ depend }}' {% endfor %}) +optdepends=({% for opt in optdepends %}'{{ opt }}' {% endfor %}) +conflicts=({% for conflict in conflicts %}'{{ conflict }}' {% endfor %}) source=() md5sums=()