-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add an initial pkgbuild It uses `pyinstaller`, as otherwise it installs lots of dependencies, and `venv`s aren't portable * Update version, add checks and install entirely in venv * Check PKGBUILD on CI * Add missing runtime deps * Only support x86 for now * `pyinstaller` doesn't depend on Python at runtime * Don't package to single file Using an opt directory makes the launch quicker, packaging quicker and simpler and generally a single file isn't necessary * Don't prompt to replace output dir * Expand dependencies to everything `namcap` complains about
- Loading branch information
1 parent
da32b75
commit 908aa9d
Showing
3 changed files
with
71 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Maintainer: Jake Howard <aur at theorangeone dot net> | ||
pkgname=heroku-audit | ||
pkgver=0.0.2 | ||
pkgrel=1 | ||
pkgdesc="Command-line tool for reporting on specific attributes of a Heroku environment." | ||
url="https://github.com/torchbox/heroku-audit" | ||
license=('BSD') | ||
arch=('x86_64') | ||
depends=(zlib readline xz openssl glibc expat bzip2 libffi util-linux-libs ncurses mpdecimal) | ||
source=("https://github.com/torchbox/heroku-audit/archive/${pkgver}.tar.gz") | ||
makedepends=(python-build python-wheel) | ||
sha256sums=('0c539746c4b5dfb1ff8504e1a96394c3456666c866e0f0c1f7f54ef6f1242279') | ||
|
||
build() { | ||
cd "${srcdir}"/${pkgname}-${pkgver} | ||
|
||
# Create a temporary virtualenv to install the build dependencies in | ||
python -m venv venv | ||
source venv/bin/activate | ||
|
||
pip install -e . pyinstaller | ||
|
||
venv/bin/pyinstaller -D --strip heroku_audit/__main__.py --name heroku-audit --clean --noconfirm | ||
} | ||
|
||
check() { | ||
cd "${srcdir}"/${pkgname}-${pkgver} | ||
|
||
./dist/heroku-audit/heroku-audit --version > /dev/null | ||
./dist/heroku-audit/heroku-audit --list > /dev/null | ||
} | ||
|
||
package() { | ||
cd "${srcdir}"/${pkgname}-${pkgver} | ||
|
||
mkdir -p "${pkgdir}"/opt | ||
cp -r dist/heroku-audit "${pkgdir}"/opt/heroku-audit | ||
|
||
mkdir -p "${pkgdir}"/usr/bin/ | ||
ln -s /opt/heroku-audit/heroku-audit "${pkgdir}"/usr/bin/ | ||
|
||
install -Dm644 README.md "${pkgdir}"/usr/share/doc/${pkgname}/README.md | ||
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE | ||
} |