From bdb87354ea3d451218b944fbdedc8d1359ec0d96 Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Wed, 6 Nov 2019 12:36:56 +0100 Subject: [PATCH] conrad-venv-bin: 0.2.0-2 --- README.md | 9 +++---- conrad-venv-bin/builds/0.2.0-2/.SRCINFO | 14 +++++++++++ conrad-venv-bin/builds/0.2.0-2/PKGBUILD | 32 +++++++++++++++++++++++++ conrad-venv-bin/package.toml | 18 ++++++++++++++ 4 files changed, 69 insertions(+), 4 deletions(-) create mode 100644 conrad-venv-bin/builds/0.2.0-2/.SRCINFO create mode 100644 conrad-venv-bin/builds/0.2.0-2/PKGBUILD create mode 100644 conrad-venv-bin/package.toml diff --git a/README.md b/README.md index 6dbd9ef..2b7e17c 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,8 @@ Helpers to generate AUR packages for Arch Linux. ## Provded packages -| Name | Version | URL | AUR | -| -------------------- | ----------- | ---------------------------------------------------------------------- | --------------------------------------------------------- | -| 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/) | +| 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) | +| 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-2/.SRCINFO b/conrad-venv-bin/builds/0.2.0-2/.SRCINFO new file mode 100644 index 0000000..7975ceb --- /dev/null +++ b/conrad-venv-bin/builds/0.2.0-2/.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 = 2 + 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-2/PKGBUILD b/conrad-venv-bin/builds/0.2.0-2/PKGBUILD new file mode 100644 index 0000000..cd6abb5 --- /dev/null +++ b/conrad-venv-bin/builds/0.2.0-2/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Felipe Martin + +pkgname="conrad-venv-bin" +pkgver="0.2.0" +pkgrel="2" +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 new file mode 100644 index 0000000..fc98f2d --- /dev/null +++ b/conrad-venv-bin/package.toml @@ -0,0 +1,18 @@ +name = "conrad-venv-bin" +version = "0.2.0" +build_number = "2" +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" +depends = ["python", "python-virtualenv", "python-pip"] +optdepends = [] +conflicts = [] +arch = ["i686", "x86_64"] + +[builder] +type = "python-virtualenv" +packages = ["conference-radar"] +binaries = ["conrad"] + +[sources] +# No need