summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4fa5c91c7a2184d5943792e0ed938d8b6f05bbdc (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
# Contributor: quininer
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=frust-git
_pkgname=frust
pkgdesc="A find replacement with SQL-like syntax"
epoch=1
pkgver=0.0.2.43
pkgrel=1
arch=('i686' 'x86_64')
conflicts=("frust")
provides=("frust")
url="https://github.com/tbehner/frust"
license=('MIT')
makedepends=('cargo')
source=('git://github.com/tbehner/frust.git')
sha256sums=('SKIP')

pkgver() {
	cd $_pkgname
	echo $(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD)
}

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

package() {
	cd $_pkgname
	install -D -m755 "$srcdir/$_pkgname/target/release/frust" "$pkgdir/usr/bin/frust"
}