diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6643d9e0b3ca --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: AdriĆ Arrufat <adria.arrufat+AUR AT protonmail DOT ch> +pkgname=coax-git +pkgver=0.0.0+20170227+34+ge2979a1 +pkgrel=1 +pkgdesc="A (barely working) native Wire client for Unix" +arch=('i686' 'x86_64') +url="https://github.com/wireapp/coax" +license=('GPL3') +depends=('libsodium' 'gtk3' 'openssl' 'sqlite') +makedepends=('cargo') +source=("git+https://github.com/wireapp/coax.git/") +sha512sums=('SKIP') + + +pkgver() { + cd coax + _date=$(git show --format="%cd" --date=format:"%Y%m%d" --no-patch) + _count=$(git rev-list --count HEAD) + _commit=$(git rev-parse --short HEAD) + echo 0.0.0+$_date+$_count+g$_commit +} + +build() { + cd "coax/coax-gtk" + cargo build --release +} + +package() { + cd "coax/coax-gtk" + cargo install --force --features=prod --root=$pkgdir/usr + install -Dm644 src/gtk/coax.desktop $pkgdir/usr/share/applications/coax.desktop + sed -i $pkgdir/usr/share/applications/coax.desktop -e 's/@bindir@/\/usr\/bin/' + install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/coax/COPYING" + rm $pkgdir/usr/.crates.toml +} |