Obsolete
/
recipes
Archived
3
0
Fork 0

package: recipe bump, default configuration added

master
Luka Vandervelden 2019-08-29 16:14:32 +02:00
parent 34edf58024
commit 06f8ed9eeb
2 changed files with 26 additions and 4 deletions

16
package/config.cfg Normal file
View File

@ -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

View File

@ -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"