28 lines
689 B
Plaintext
28 lines
689 B
Plaintext
name: package
|
|
version: 0.5.0
|
|
release: 2
|
|
sources:
|
|
- https://git.karchnu.fr/WeirdOS/package/archive/%{version}.tar.gz -> %{name}-%{version}.tar.gz
|
|
- config.cfg
|
|
|
|
build-dependencies: crystal, shards
|
|
# FIXME: FIXME: Build this statically in.
|
|
# FIXME: bsdtar should be split out so that we depend only on it.
|
|
# Busybox is required mostly for `wget`.
|
|
# zsh is required for assemble-apk.
|
|
dependencies: gc, libevent, pcre, libarchive, busybox, zsh
|
|
|
|
dirname: package
|
|
@configure
|
|
cd %{dirname}
|
|
shards install
|
|
@build
|
|
cd %{dirname}
|
|
make PREFIX="%{prefix}"
|
|
@install
|
|
cd %{dirname}
|
|
make PREFIX="%{prefix}" DESTDIR="%{pkg}" install
|
|
|
|
mkdir -p "%{pkg}/etc"
|
|
cp ../config.cfg "%{pkg}/etc/package.cfg"
|