diff options
author | ibrokemypie | 2018-01-27 19:52:13 +1100 |
---|---|---|
committer | ibrokemypie | 2018-01-27 19:52:13 +1100 |
commit | 868ca22966656b7e89d4bb2e89fc627a4ea77d89 (patch) | |
tree | 869a20f0cbfc17bc5ae9dc4316d1da6a9cde466a /PKGBUILD | |
download | aur-eidolon-git.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9385b9b340a3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +pkgname="eidolon-git" +_pkgname="eidolon" +pkgver=r64.6d949a8 +pkgrel=1 +pkgdesc="Provides a single TUI-based registry for drm-free, wine and steam games on linux, accessed through a rofi launch menu." +arch=('any') +url="https://github.com/nicohman/eidolon" +license=('GPL') +makedepends=(rust cargo) +depends=(rofi) +conflicts=(eidolon) +source=("git+https://github.com/nicohman/eidolon.git") +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/$_pkgname" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +package() { + cd ${_pkgname} + cargo build --release + install -d -m 755 ${pkgdir}/usr/bin + cp target/release/eidolon ${pkgdir}/usr/bin/eidolon +} + |