mirror of
https://github.com/rxrbln/t2sde.git
synced 2025-05-08 20:21:59 +08:00
29 lines
853 B
Plaintext
29 lines
853 B
Plaintext
# --- T2-COPYRIGHT-BEGIN ---
|
|
# t2/package/*/g-wrap/g-wrap.conf
|
|
# Copyright (C) 2004 - 2025 The T2 SDE Project
|
|
# Copyright (C) 1998 - 2003 ROCK Linux Project
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# --- T2-COPYRIGHT-END ---
|
|
|
|
gwrap_slib() {
|
|
local guiledatadir=$root/usr/share/guile
|
|
|
|
# we need the slib scheme package for g-wrap
|
|
tar $taropt `match_source_file -p slib`
|
|
mkdir -p $guiledatadir/slib
|
|
|
|
cd slib
|
|
sed -i "s,/usr/local/lib/slib,$guiledatadir/slib," Template.scm
|
|
install -m 644 *.scm $guiledatadir/slib/
|
|
install -m 644 guile.init $guiledatadir/slib/
|
|
cd ..
|
|
rm -rf slib
|
|
|
|
# slib wants to write /usr/share/guile/slibcat on first use
|
|
# this needs root privs, so we do it here once
|
|
guile -c "(use-modules (ice-9 slib)) (require 'new-catalog)"
|
|
}
|
|
hook_add preconf 5 "gwrap_slib"
|
|
|
|
var_append confopt ' ' "--with-libffi-prefix=$root/`pkgprefix gcc`"
|