summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e01c4a24c67ee6567416a3dfe7fe8e3a6cbeb089 (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
# Maintainer: Ben Aaron Goldberg <ben@benaaron.dev>

pkgname=fddf
pkgver=1.7.0
pkgrel=1
pkgdesc="Fast data dupe finder"
arch=('x86_64' 'i686' 'arm' 'armv7h' 'aarch64')
url="https://github.com/birkenfeld/fddf"
license=('MIT' 'APACHE')
source=("https://github.com/birkenfeld/fddf/archive/v${pkgver}.tar.gz")
makedepends=('rust' 'cargo')
sha256sums=("44ef9630376dcaa3b1c13efff445eb838ee2f909011224dcfd40beda6413c4eb")

build() {
	tar -xf v${pkgver}.tar.gz
	cd "$srcdir/$pkgname-$pkgver"
	cargo build --release
}

package() {
	install -D -m755 "$srcdir/$pkgname-$pkgver/target/release/$pkgname" \
		"$pkgdir/usr/bin/$pkgname"

	install -D -m644 "$srcdir/$pkgname-$pkgver/LICENSE-APACHE" \
		"$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE"
	install -D -m644 "$srcdir/$pkgname-$pkgver/LICENSE-MIT" \
		"$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT"
}