summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 30b97b22cfba0335f7872873eedc53e23c2df735 (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
31
32
# Maintainer: Ash <xash at riseup d0t net>
pkgname=alterware-launcher-git
_pkgname=alterware-launcher
pkgver=0.8.1.r2.g8f0ba69
pkgrel=1
provides=('alterware-launcher')
pkgdesc='AlterWare.dev updater & launcher, written in Rust.'
url='https://github.com/mxve/alterware-launcher'
license=('GPL3')
arch=('x86_64')
makedepends=('cargo' 'rust' 'pkgconf' 'git')
depends=('openssl' 'perl')
options=('!lto')
source=("$_pkgname::git+https://github.com/mxve/alterware-launcher.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$_pkgname"
  cargo build --release
}

package() {
  cd "$_pkgname"
  install -Dm755 "${CARGO_TARGET_DIR:-target}/release/alterware-launcher" "$pkgdir/usr/bin/alterware-launcher"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}