summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 92dfd8a99bfb353bc4f3933a70a008a83bd2cab5 (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: asm0dey <pavel.finkelshtein@gmail.com>
# Contributor: asm0dey <pavel.finkelshtein@gmail.com>

pkgname=fselect-git
pkgrel=1
pkgver=0.6.10.r31.g608221f
url="https://github.com/jhspetersson/fselect"
license=("MIT")
arch=(i686 x86_64)
pkgdesc='Find files with SQL-like queries'

source=("$pkgname::git://github.com/jhspetersson/fselect.git")
md5sums=('SKIP')
makedepends=('rust' 'git')
depends=('gcc-libs')
provides=('fselect')
conflicts=('fselect')

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

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

package() {
    install -Dm755 "$pkgname/target/release/fselect" "$pkgdir/usr/bin/fselect"
    install -Dm644 "$srcdir/$pkgname/LICENSE-MIT" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}