-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathapply_extra
58 lines (49 loc) · 964 Bytes
/
apply_extra
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
set -e
# extract archive
bsdtar -xf eagle.tar.gz --strip-components=1 --no-same-owner
rm -f eagle.tar.gz
# remove bundled libs
{
cd lib
# libs with stable abi that are available in the runtime
_libs=(
# dbus
libdbus-1.so.3
# glib2
lib{gmodule,gthread}-2.0.so.0
# mesa
lib{EGL,gbm,glapi}.so*
# nspr
libpl{c,ds}4.so*
# pcre
libpcre.so*
# xorg
lib{X,xcb,xshmfence}*.so*
)
# # TODO: packaged libs
# _libs+=(
# # avahi
# libavahi*.so*
# # icu 56
# libicu{data,i18n,uc}.so*
# # krb5
# libkrb5{,support}.so*
# # libffi
# libffi.so*
# # libselinux
# libselinux.so*
# # libsuit
# libsuit.so*
# # nss
# lib{freebl3,smime3}.so*
# # openssl 1.0.x
# lib{crypto,ssl}.so*
# )
rm -f "${_libs[@]}"
}
# fix permissions
find ./ -perm 750 -exec chmod 755 {} \;
find ./ -perm 700 -exec chmod 755 {} \;
find ./ -perm 640 -exec chmod 644 {} \;
find ./ -perm 600 -exec chmod 644 {} \;