summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb761fb58dcf1d1f124e947d3fc9da634bc49388 (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
# Maintainer: ArcanusNEO <admin@transcliff.top>
pkgname=see-git
pkgver=r59.b4dd0d2
pkgrel=1
pkgdesc="Simple and fast Web server."
arch=("any")
url="https://github.com/wyhaya/see"
license=("MIT")
depends=("base-devel" "git")
makedepends=("rust")
options=('!lto')
provides=("see")
conflicts=("see")
source=("$pkgname::git+$url")
sha256sums=("SKIP")

pkgver() {
  cd "$srcdir/$pkgname"
  echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/$pkgname"
  cargo build --release
}

package() {
  install -Dm755 "$srcdir/$pkgname/target/release/see" "$pkgdir/usr/bin/see"
}