summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c49558744e81ae9ea476353e14da06aa728bbc02 (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
33
34
35
36
37
38
# Maintainer: Sauyon Lee <aur at sjle.co>
pkgname=bin
pkgver=1.0.2
pkgrel=2
epoch=
pkgdesc="A paste bin written in Rust."
arch=('i686' 'x86_64')
url=""
license=('WTFPL')
groups=()
depends=()
makedepends=('rust' 'clang')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/w4/bin/archive/v${pkgver}.tar.gz")
sha256sums=('c4f01275fc56e4ef7a61897fb18f9b09ff3cd8dbc2d475c09d7565b83b8370d3')
noextract=()
build() {
  cd "$srcdir/$pkgname-$pkgver"

  cargo update
  cargo build --release
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  install -Dm755 ./target/release/bin "$pkgdir/usr/bin/bin"
}

# vim:set ts=2 sw=2 et: