aboutsummaryrefslogblamecommitdiffstats
path: root/testing/watchexec/APKBUILD
blob: 94161d5e21f1a657132b6f8389f8f6047cb867bc (plain) (tree)
1
2
3
4
5
6
7
8


                                                      
             


                                                             
                                                                     






















                                                                                               
                                                                                                                                                                      
# Contributor: Chloe Kudryavtsev <toast@toastin.space>
# Maintainer: Chloe Kudryavtsev <toast@toastin.space>
pkgname=watchexec
pkgver=1.10.3
pkgrel=0
pkgdesc='Executes commands in response to file modifications'
url='https://github.com/watchexec/watchexec'
arch='x86_64 x86 armhf armv7 aarch64 ppc64le' # limited by rust/cargo
license='Apache-2.0'
makedepends='cargo'
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/watchexec/watchexec/archive/$pkgver.tar.gz"

export CARGO_HOME="$srcdir"/cargo

build() {
	cargo build \
		--release \
		--verbose
}

check() {
	cargo test --all \
		--release \
		--verbose
}

package() {
	install -Dm755 target/release/"$pkgname" "$pkgdir"/usr/bin/"$pkgname"
	install -Dm644 doc/"$pkgname".1 "$pkgdir"/usr/share/man/man1/"$pkgname".1
}
sha512sums="5029df9b4ea801bce4bbd2cc097566d55f94cbcc377cf99609898c8e42b9522eb5c61df7952cf8d0330c03b85a43f4394c86c8ac97844fca3967670b9b733e51  watchexec-1.10.3.tar.gz"