summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 60ef6ba571e541509157186c7a23de5699054970 (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
33
34
35
36
37
38
39
# Maintainer: Meow0x7E <Meow0x7E@outlook.com>
pkgname=slow-scan-print
pkgver=0.2.2
pkgrel=3
epoch=
pkgdesc="This CLI program prints text at fixed intervals by character or line, and its name was inspired by SSTV (Slow-Scan TV)."
arch=("any")
url=
license=('LGPL3')
groups=()
depends=()
makedepends=("cargo")
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=("!debug")
install=
changelog=
source=()
noextract=()
sha256sums=()
validpgpkeys=()

build() {
	if [[ -d ${HOME}/.rustup ]]; then
		ln -srfv ${HOME}/.rustup ${srcdir}/.rustup
	fi
	HOME=${srcdir} cargo install --version=${pkgver} slow-scan-print
}

package() {
	mkdir -vp ${pkgdir}/usr/bin
	cp -vu ${srcdir}/.cargo/bin/slow-scan-print ${pkgdir}/usr/bin
}

# vim:set sts=4 ts=4 sw=4 noexpandtab: