package: recipe bump, default configuration added
parent
34edf58024
commit
06f8ed9eeb
|
@ -0,0 +1,16 @@
|
|||
# /etc/packages.cfg
|
||||
|
||||
prefixes:
|
||||
- /usr/weirdos
|
||||
- /usr/bad
|
||||
- /
|
||||
|
||||
packages-directory: /srv/packages
|
||||
sources-directory: /srv/sources
|
||||
|
||||
environment:
|
||||
- CFLAGS: -O2 -fPIC
|
||||
- CXXFLAGS: -O2 -fPIC
|
||||
- MAKEFLAGS: -j4
|
||||
|
||||
# EOF
|
|
@ -1,6 +1,9 @@
|
|||
name: package
|
||||
version: 0.2.0
|
||||
sources: https://git.karchnu.fr/WeirdOS/package/archive/%{version}.tar.gz -> %{name}-%{version}.tar.gz
|
||||
version: 0.5.0
|
||||
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.
|
||||
dependencies: gc, libevent, pcre
|
||||
|
@ -11,7 +14,10 @@ dirname: package
|
|||
shards install
|
||||
@build
|
||||
cd %{dirname}
|
||||
make PREFIX=/usr
|
||||
make PREFIX="%{prefix}"
|
||||
@install
|
||||
cd %{dirname}
|
||||
make PREFIX=/usr DESTDIR="%{pkg}" install
|
||||
make PREFIX="%{prefix}" DESTDIR="%{pkg}" install
|
||||
|
||||
mkdir -p "%{pkg}/etc"
|
||||
cp ../config.cfg "%{pkg}/etc/package.cfg"
|
||||
|
|
Reference in New Issue