File builders/libxkbcommon-7caf57f0131bc963a100dd1d6a5aa738fb334c3c/builder.sh copied from file builders/libxkbcommon-1318bedbb7ec4a761edfb93a3dbdde00fd1e8127/builder.sh (similarity 77%) (mode: 100644) (index d219bc6..379b41f) |
... |
... |
src_name=libxkbcommon |
2 |
2 |
git_commit=${pkg_name##*-} |
git_commit=${pkg_name##*-} |
3 |
3 |
slot=$git_commit |
slot=$git_commit |
4 |
4 |
# version is at the top of the root meson.build file |
# version is at the top of the root meson.build file |
5 |
|
version=1.3.0 |
|
|
5 |
|
version=1.6.0 |
6 |
6 |
git_url0=git://github.com/xkbcommon/libxkbcommon |
git_url0=git://github.com/xkbcommon/libxkbcommon |
7 |
7 |
|
|
8 |
8 |
pkg_dir=$pkgs_dir_root/$pkg_name |
pkg_dir=$pkgs_dir_root/$pkg_name |
|
... |
... |
cd $build_dir |
27 |
27 |
cat >config.h <<EOF |
cat >config.h <<EOF |
28 |
28 |
#define DFLT_XKB_CONFIG_ROOT "/nyan/xkeyboard-config/current/share/X11/xkb" |
#define DFLT_XKB_CONFIG_ROOT "/nyan/xkeyboard-config/current/share/X11/xkb" |
29 |
29 |
#define DFLT_XKB_CONFIG_EXTRA_PATH "" |
#define DFLT_XKB_CONFIG_EXTRA_PATH "" |
30 |
|
#define XLOCALEDIR "/nyan/libX11/current/share/X11/locale" |
|
|
30 |
|
#define XLOCALEDIR "/usr/share/X11/locale" |
31 |
31 |
#define LIBXKBCOMMON_VERSION "$version" |
#define LIBXKBCOMMON_VERSION "$version" |
32 |
32 |
#define DEFAULT_XKB_RULES "evdev" |
#define DEFAULT_XKB_RULES "evdev" |
33 |
33 |
#define DEFAULT_XKB_MODEL "pc105" |
#define DEFAULT_XKB_MODEL "pc105" |
|
... |
... |
EOF |
57 |
57 |
# ALWAYS MANUALLY WRITE YOUR PARSERS! |
# ALWAYS MANUALLY WRITE YOUR PARSERS! |
58 |
58 |
# JEZUS! FOR GOD SAKE! YOU ANIMALS! PYTHON IS NOT ENOUGH ALREADY! |
# JEZUS! FOR GOD SAKE! YOU ANIMALS! PYTHON IS NOT ENOUGH ALREADY! |
59 |
59 |
# TOXIC HUMAN BEINGS! |
# TOXIC HUMAN BEINGS! |
60 |
|
bison --defines=parser.h -o $build_dir/parser.c -p _xkbcommon_ \ |
|
|
60 |
|
/nyan/bison/current/bin/bison --defines=parser.h -o $build_dir/parser.c -p _xkbcommon_ \ |
61 |
61 |
$pkg_dir/src/xkbcomp/parser.y |
$pkg_dir/src/xkbcomp/parser.y |
62 |
62 |
srcs="\ |
srcs="\ |
63 |
63 |
$pkg_dir/src/compose/parser.c \ |
$pkg_dir/src/compose/parser.c \ |
|
... |
... |
for f in $srcs |
97 |
97 |
do |
do |
98 |
98 |
obj=$build_dir/$(dirname $f)/$(basename $f .c).o |
obj=$build_dir/$(dirname $f)/$(basename $f .c).o |
99 |
99 |
mkdir -p $build_dir/$(dirname $f) |
mkdir -p $build_dir/$(dirname $f) |
100 |
|
gcc -fvisibility=hidden -fPIC -c \ |
|
|
100 |
|
/nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/x86_64-nyan2-linux-gnu-gcc \ |
|
101 |
|
-static-libgcc \ |
|
102 |
|
-std=gnu99 \ |
|
103 |
|
-fvisibility=hidden -fPIC -O2 -pipe -ftls-model=global-dynamic -fpic -c \ |
101 |
104 |
-D_GNU_SOURCE \ |
-D_GNU_SOURCE \ |
102 |
105 |
-isystem /nyan/glibc/current/include \ |
-isystem /nyan/glibc/current/include \ |
103 |
106 |
-isystem /nyan/linux-headers/current/include \ |
-isystem /nyan/linux-headers/current/include \ |
|
... |
... |
do |
109 |
112 |
objs="$obj $objs" |
objs="$obj $objs" |
110 |
113 |
done |
done |
111 |
114 |
wait |
wait |
112 |
|
gcc -B/nyan/glibc/current/lib -shared \ |
|
|
115 |
|
/nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/x86_64-nyan2-linux-gnu-gcc \ |
|
116 |
|
-B/nyan/glibc/current/lib -shared \ |
113 |
117 |
-Wl,--version-script=$pkg_dir/xkbcommon.map \ |
-Wl,--version-script=$pkg_dir/xkbcommon.map \ |
114 |
118 |
-Wl,-soname=libxkbcommon.so.0 \ |
-Wl,-soname=libxkbcommon.so.0 \ |
|
119 |
|
-Wl,-s \ |
|
120 |
|
-static-libgcc \ |
115 |
121 |
$objs \ |
$objs \ |
116 |
122 |
-o $build_dir/libxkbcommon.so.0.0.0 |
-o $build_dir/libxkbcommon.so.0.0.0 |
117 |
123 |
ln -sTf libxkbcommon.so.0.0.0 $build_dir/libxkbcommon.so.0 |
ln -sTf libxkbcommon.so.0.0.0 $build_dir/libxkbcommon.so.0 |
|
... |
... |
for f in $srcs |
144 |
150 |
do |
do |
145 |
151 |
obj=$build_dir/$(dirname $f)/$(basename $f .c).o |
obj=$build_dir/$(dirname $f)/$(basename $f .c).o |
146 |
152 |
mkdir -p $build_dir/$(dirname $f) |
mkdir -p $build_dir/$(dirname $f) |
147 |
|
gcc -fvisibility=hidden -fPIC -c \ |
|
|
153 |
|
/nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/x86_64-nyan2-linux-gnu-gcc \ |
|
154 |
|
-std=gnu99 \ |
|
155 |
|
-fvisibility=hidden -fPIC -O2 -pipe -ftls-model=global-dynamic -fpic -c \ |
|
156 |
|
-static-libgcc \ |
148 |
157 |
-isystem /nyan/glibc/current/include \ |
-isystem /nyan/glibc/current/include \ |
149 |
158 |
-isystem /nyan/linux-headers/current/include \ |
-isystem /nyan/linux-headers/current/include \ |
150 |
159 |
-I$build_dir \ |
-I$build_dir \ |
|
... |
... |
do |
156 |
165 |
objs="$obj $objs" |
objs="$obj $objs" |
157 |
166 |
done |
done |
158 |
167 |
wait |
wait |
159 |
|
gcc -B/nyan/glibc/current/lib -shared \ |
|
|
168 |
|
/nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/x86_64-nyan2-linux-gnu-gcc \ |
|
169 |
|
-static-libgcc \ |
|
170 |
|
-B/nyan/glibc/current/lib -shared \ |
160 |
171 |
-Wl,--version-script=$pkg_dir/xkbcommon-x11.map \ |
-Wl,--version-script=$pkg_dir/xkbcommon-x11.map \ |
161 |
172 |
-Wl,-soname=libxkbcommon-x11.so.0 \ |
-Wl,-soname=libxkbcommon-x11.so.0 \ |
|
173 |
|
-Wl,-s \ |
162 |
174 |
$objs \ |
$objs \ |
163 |
175 |
-L$build_dir -lxkbcommon \ |
-L$build_dir -lxkbcommon \ |
164 |
176 |
-L/nyan/libxcb/current/lib -lxcb-xkb \ |
-L/nyan/libxcb/current/lib -lxcb-xkb \ |
|
... |
... |
for f in $srcs |
193 |
205 |
do |
do |
194 |
206 |
obj=$build_dir/$(dirname $f)/$(basename $f .c).o |
obj=$build_dir/$(dirname $f)/$(basename $f .c).o |
195 |
207 |
mkdir -p $build_dir/$(dirname $f) |
mkdir -p $build_dir/$(dirname $f) |
196 |
|
gcc -fvisibility=hidden -fPIC -c \ |
|
|
208 |
|
/nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/x86_64-nyan2-linux-gnu-gcc \ |
|
209 |
|
-std=gnu99 \ |
|
210 |
|
-static-libgcc \ |
|
211 |
|
-fvisibility=hidden -fPIC -O2 -pipe -ftls-model=global-dynamic -fpic -c \ |
197 |
212 |
-isystem /nyan/glibc/current/include \ |
-isystem /nyan/glibc/current/include \ |
198 |
213 |
-isystem /nyan/linux-headers/current/include \ |
-isystem /nyan/linux-headers/current/include \ |
199 |
214 |
-I$build_dir \ |
-I$build_dir \ |
|
... |
... |
do |
205 |
220 |
objs="$obj $objs" |
objs="$obj $objs" |
206 |
221 |
done |
done |
207 |
222 |
wait |
wait |
208 |
|
gcc -B/nyan/glibc/current/lib -shared \ |
|
|
223 |
|
/nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/x86_64-nyan2-linux-gnu-gcc \ |
|
224 |
|
-static-libgcc \ |
|
225 |
|
-B/nyan/glibc/current/lib -shared \ |
|
226 |
|
-Wl,-s \ |
209 |
227 |
-Wl,--version-script=$pkg_dir/xkbregistry.map \ |
-Wl,--version-script=$pkg_dir/xkbregistry.map \ |
210 |
228 |
-Wl,-soname=libxkbregistry.so.0 \ |
-Wl,-soname=libxkbregistry.so.0 \ |
211 |
229 |
$objs \ |
$objs \ |
|
... |
... |
EOF |
232 |
250 |
#------------------------------------------------------------------------------- |
#------------------------------------------------------------------------------- |
233 |
251 |
mkdir -p /nyan/$src_name/$slot/include/xkbcommon |
mkdir -p /nyan/$src_name/$slot/include/xkbcommon |
234 |
252 |
mkdir -p /nyan/$src_name/$slot/lib/pkgconfig |
mkdir -p /nyan/$src_name/$slot/lib/pkgconfig |
|
253 |
|
mkdir -p /usr/lib |
235 |
254 |
mv -f $pkg_dir/include/xkbcommon/xkbcommon.h \ |
mv -f $pkg_dir/include/xkbcommon/xkbcommon.h \ |
236 |
255 |
$pkg_dir/include/xkbcommon/xkbcommon-compat.h \ |
$pkg_dir/include/xkbcommon/xkbcommon-compat.h \ |
237 |
256 |
$pkg_dir/include/xkbcommon/xkbcommon-compose.h \ |
$pkg_dir/include/xkbcommon/xkbcommon-compose.h \ |
|
... |
... |
mv -f $pkg_dir/include/xkbcommon/xkbcommon.h \ |
241 |
260 |
$pkg_dir/include/xkbcommon/xkbregistry.h \ |
$pkg_dir/include/xkbcommon/xkbregistry.h \ |
242 |
261 |
/nyan/$src_name/$slot/include/xkbcommon |
/nyan/$src_name/$slot/include/xkbcommon |
243 |
262 |
mv -f $build_dir/*.pc /nyan/$src_name/$slot/lib/pkgconfig |
mv -f $build_dir/*.pc /nyan/$src_name/$slot/lib/pkgconfig |
244 |
|
strip -s $build_dir/*.so |
|
245 |
|
mv -f $build_dir/*.so* /nyan/$src_name/$slot/lib |
|
|
263 |
|
mv -f $build_dir/libxkbcommon.so.0.0.0 /nyan/$src_name/$slot/lib |
|
264 |
|
ln -sTf libxkbcommon.so.0.0.0 /nyan/$src_name/$slot/lib/libxkbcommon.so |
|
265 |
|
# XXX:current, not slot |
|
266 |
|
ln -sTf /nyan/$src_name/current/lib/libxkbcommon.so.0.0.0 /usr/lib/libxkbcommon.so.0 |
|
267 |
|
mv -f $build_dir/libxkbcommon-x11.so.0.0.0 /nyan/$src_name/$slot/lib |
|
268 |
|
ln -sTf libxkbcommon-x11.so.0.0.0 /nyan/$src_name/$slot/lib/libxkbcommon-x11.so |
|
269 |
|
# XXX:current, not slot |
|
270 |
|
ln -sTf /nyan/$src_name/current/lib/libxkbcommon-x11.so.0.0.0 /usr/lib/libxkbcommon-x11.so.0 |
|
271 |
|
mv -f $build_dir/libxkbregistry.so.0.0.0 /nyan/$src_name/$slot/lib |
|
272 |
|
ln -sTf libxkbregistry.so.0.0.0 /nyan/$src_name/$slot/lib/libxkbregistry.so |
|
273 |
|
# XXX:current, not slot |
|
274 |
|
ln -sTf /nyan/$src_name/current/lib/libxkbregistry.so.0.0.0 /usr/lib/libxkbregistry.so.0 |
246 |
275 |
|
|
247 |
276 |
rm -Rf $build_dir $pkg_dir |
rm -Rf $build_dir $pkg_dir |