2019-08-03 13:12:23 +02:00
|
|
|
|
|
2019-09-12 17:30:39 +02:00
|
|
|
|
package=packaging
|
2019-09-27 13:59:23 +02:00
|
|
|
|
version=0.9.3
|
2019-08-03 13:12:23 +02:00
|
|
|
|
|
|
|
|
|
variables+=(
|
|
|
|
|
LIBEXECDIR '$(PREFIX)/libexec'
|
2019-08-29 00:20:15 +02:00
|
|
|
|
SYSCONFDIR '$(PREFIX)/etc'
|
2019-08-28 20:25:59 +02:00
|
|
|
|
VERSION "$version"
|
2019-08-03 13:12:23 +02:00
|
|
|
|
)
|
|
|
|
|
|
2019-09-12 17:30:39 +02:00
|
|
|
|
targets=(packaging assemble-apk.sh)
|
2019-08-03 13:12:23 +02:00
|
|
|
|
|
2019-09-12 17:30:39 +02:00
|
|
|
|
type[packaging]=crystal
|
|
|
|
|
sources[packaging]=src/main.cr
|
|
|
|
|
depends[packaging]="$(echo src/*.cr | sed 's| src/config.cr||') src/config.cr"
|
2019-08-03 13:12:23 +02:00
|
|
|
|
|
|
|
|
|
type[assemble-apk.sh]=script
|
|
|
|
|
|
|
|
|
|
targets+=(src/config.cr)
|
|
|
|
|
type[src/config.cr]=script
|
|
|
|
|
sources[src/config.cr]=src/config.cr.in
|
|
|
|
|
auto[src/config.cr]=true # Don’t display it in `make help`.
|
|
|
|
|
install[src/config.cr]=false
|
|
|
|
|
|
|
|
|
|
# FIXME: Clean and upstream this.
|
|
|
|
|
function script.install {
|
|
|
|
|
if [[ false == "${install[$target]}" ]]; then
|
|
|
|
|
write "$target.install:"
|
|
|
|
|
write "\t${Q}:"
|
|
|
|
|
write
|
|
|
|
|
else
|
|
|
|
|
binary.install "$@"
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-12 17:30:39 +02:00
|
|
|
|
install[assemble-apk.sh]='$(LIBEXECDIR)/packaging'
|
2019-08-03 13:12:23 +02:00
|
|
|
|
|