summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb091c98cbc5969aa21271a5b8153ef4c0858950 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: jD91mZM2 <me@krake.one>
pkgname="synac-gtk-git"
pkgver=0927f0a
pkgrel=1
pkgdesc="The synac GTK+ client"
url="https://github.com/synac-chat/client-gtk"
arch=("x86_64")
license=("MIT", "custom:MIT")
makedepends=("git" "rust")
optdepends=()
depends=()
source=("$pkgname::git+https://github.com/synac-chat/client-gtk")
sha256sums=("SKIP")

pkgver() {
    cd "$srcdir/$pkgname"
    git rev-parse --short HEAD | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "$srcdir/$pkgname"
    git submodule init
    git submodule update
    cargo build --release
}
package() {
    cd "$srcdir/$pkgname"
    install -Dm 755 "target/release/client-gtk" "$pkgdir/usr/bin/synac-gtk"
    install -Dm 644 "LICENSE" "$pkgdir/usr/share/licenses/synac-gtk/LICENSE"
}