2019-08-15 17:31:51 +02:00
|
|
|
name: package
|
2019-09-04 13:38:49 +02:00
|
|
|
version: 0.7.0
|
|
|
|
release: 1
|
2019-08-29 16:14:32 +02:00
|
|
|
sources:
|
|
|
|
- https://git.karchnu.fr/WeirdOS/package/archive/%{version}.tar.gz -> %{name}-%{version}.tar.gz
|
|
|
|
- config.cfg
|
|
|
|
|
2019-09-04 13:38:49 +02:00
|
|
|
build-dependencies: crystal, spec-parser
|
2019-08-15 17:31:51 +02:00
|
|
|
# FIXME: FIXME: Build this statically in.
|
2019-09-01 17:30:47 +02:00
|
|
|
# FIXME: bsdtar should be split out so that we depend only on it.
|
|
|
|
# Busybox is required mostly for `wget`.
|
2019-09-01 17:32:44 +02:00
|
|
|
# abuild and zsh are required for assemble-apk.
|
|
|
|
dependencies: gc, libevent, pcre, libarchive, busybox, zsh, abuild
|
2019-08-15 17:31:51 +02:00
|
|
|
|
|
|
|
dirname: package
|
|
|
|
@configure
|
2019-09-04 13:38:49 +02:00
|
|
|
true
|
|
|
|
|
2019-08-15 17:31:51 +02:00
|
|
|
@build
|
|
|
|
cd %{dirname}
|
2019-09-02 16:34:04 +02:00
|
|
|
make PREFIX="%{prefix}" SYSCONFDIR="/etc"
|
2019-08-15 17:31:51 +02:00
|
|
|
@install
|
|
|
|
cd %{dirname}
|
2019-09-02 16:34:04 +02:00
|
|
|
make PREFIX="%{prefix}" SYSCONFDIR="/etc" DESTDIR="%{pkg}" install
|
2019-08-29 16:14:32 +02:00
|
|
|
|
|
|
|
mkdir -p "%{pkg}/etc"
|
|
|
|
cp ../config.cfg "%{pkg}/etc/package.cfg"
|