Build Script

default / deduplicator-git

name='deduplicator-git'
version='163.023670c'
release='1'
desc='Find, Sort, Filter & Delete duplicate files'
homepage='https://github.com/sreedevk/deduplicator'
maintainer="Евгений Храмов <xpamych@yandex.ru>"
architectures=('amd64')
license=('MIT')
provides=('deduplicator')
conflicts=('deduplicator')
#deps=('')
build_deps=('cargo')

sources=("git+https://github.com/sreedevk/deduplicator.git")
checksums=('SKIP')

version() {
	cd "$srcdir/deduplicator"
	git-version
}

build() {
	cd "${srcdir}/deduplicator"
	cargo build
}

package() {
	install -Dm755 "${srcdir}/${name}/target/debug/deduplicator" "${pkgdir}/usr/bin/deduplicator"
}