Obsolete
/
packaging
Archived
3
0
Fork 0
This repository has been archived on 2022-01-17. You can view files and clone it, but cannot push or open issues/pull-requests.
packaging/project.zsh

38 lines
757 B
Bash
Raw Normal View History

2019-08-03 13:12:23 +02:00
package=package
2019-08-29 16:10:15 +02:00
version=0.5.0
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
)
targets=(package assemble-apk.sh)
type[package]=crystal
sources[package]=src/main.cr
depends[package]="$(echo src/*.cr | sed 's| src/config.cr||') src/config.cr"
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 # Dont 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
}
install[assemble-apk.sh]='$(LIBEXECDIR)/package'