27 lines
733 B
Bash
27 lines
733 B
Bash
# Template file for 'ttyqr'
|
|
pkgname=ttyqr
|
|
version=0.0.20151022
|
|
revision=1
|
|
_githash=56f76586e864c50bd487dc6d2492f7512d32fc3a
|
|
wrksrc=${pkgname}-${_githash}
|
|
build_style=gnu-makefile
|
|
makedepends="qrencode-devel"
|
|
short_desc="Draw QR codes straight into the terminal"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/oskar456/ttyqr/"
|
|
distfiles="https://github.com/oskar456/ttyqr/archive/${_githash}.tar.gz>${pkgname}-${version}.tar.gz"
|
|
checksum=e1e07dbb74af3a42dcbde475920e8df6b90519c53f9b96476ba7720f76b1291d
|
|
|
|
pre_build() {
|
|
cat > Makefile <<EOF
|
|
ttyqr: ttyqr.c
|
|
$CC $CFLAGS $LDFLAGS -ggdb -std=c99 -o ttyqr ttyqr.c -lqrencode
|
|
EOF
|
|
}
|
|
|
|
do_install() {
|
|
vbin ttyqr
|
|
vdoc README
|
|
}
|