Skip to content

Commit 91c8c29

Browse files
committed
Add winetricks-search
1 parent 1a15934 commit 91c8c29

File tree

3 files changed

+364
-1
lines changed

3 files changed

+364
-1
lines changed

pkgbuild/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pkgver=$(date +%Y_%m_%d)
55
pkgrel=$(date +%H%M)
66
arch=('any')
77
license=('MIT')
8-
depends=('bbv-framework' 'ripgrep' 'gawk' 'sed' 'bash' 'coreutils' 'pacman' 'jq' 'wget' 'gzip' 'jaq' 'aria2' 'pigz' 'sd' 'expect')
8+
depends=('bbv-framework' 'ripgrep' 'gawk' 'sed' 'bash' 'coreutils' 'pacman' 'jq' 'wget' 'gzip' 'jaq' 'aria2' 'pigz' 'sd' 'expect' 'pactrans-overwrite')
99
url="https://github.com/biglinux/future-tests"
1010
pkgdesc="Test to future of BigLinux"
1111
source=("git+https://github.com/biglinux/future-tests.git")
Lines changed: 296 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,296 @@
1+
#!/usr/bin/env bash
2+
3+
# 2024-2024, Bruno Gonçalves <www.biglinux.com.br>
4+
#
5+
# Redistribution and use in source and binary forms, with or without
6+
# modification, are permitted provided that the following conditions
7+
# are met:
8+
# 1. Redistributions of source code must retain the above copyright
9+
# notice, this list of conditions and the following disclaimer.
10+
# 2. Redistributions in binary form must reproduce the above copyright
11+
# notice, this list of conditions and the following disclaimer in the
12+
# documentation and/or other materials provided with the distribution.
13+
#
14+
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15+
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16+
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17+
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18+
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19+
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20+
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21+
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23+
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24+
25+
# Define a list of known DLLs and their descriptions
26+
dllList="
27+
amstream amstream.dll
28+
atmlib atmlib.dll
29+
avifil32 avifil32.dll
30+
cabinet cabinet.dll
31+
comctl32 comctl32.dll
32+
crypt32 crypt32.dll
33+
crypt32_winxp crypt32.dll
34+
binkw32 binkw32.dll
35+
d3dcompiler_42 d3dcompiler_42.dll
36+
d3dcompiler_43 d3dcompiler_43.dll
37+
d3dcompiler_46 d3dcompiler_46.dll
38+
d3dcompiler_47 d3dcompiler_47.dll
39+
d3drm d3drm.dll
40+
d3dx9 d3dx9_43.dll
41+
d3dx9_24 d3dx9_24.dll
42+
d3dx9_25 d3dx9_25.dll
43+
d3dx9_26 d3dx9_26.dll
44+
d3dx9_27 d3dx9_27.dll
45+
d3dx9_28 d3dx9_28.dll
46+
d3dx9_29 d3dx9_29.dll
47+
d3dx9_30 d3dx9_30.dll
48+
d3dx9_31 d3dx9_31.dll
49+
d3dx9_32 d3dx9_32.dll
50+
d3dx9_33 d3dx9_33.dll
51+
d3dx9_34 d3dx9_34.dll
52+
d3dx9_35 d3dx9_35.dll
53+
d3dx9_36 d3dx9_36.dll
54+
d3dx9_37 d3dx9_37.dll
55+
d3dx9_38 d3dx9_38.dll
56+
d3dx9_39 d3dx9_39.dll
57+
d3dx9_40 d3dx9_40.dll
58+
d3dx9_41 d3dx9_41.dll
59+
d3dx9_42 d3dx9_42.dll
60+
d3dx9_43 d3dx9_43.dll
61+
d3dx11_42 d3dx11_42.dll
62+
d3dx11_43 d3dx11_43.dll
63+
d3dx10 d3dx10_33.dll
64+
d3dx10_43 d3dx10_43.dll
65+
d3dxof d3dxof.dll
66+
dbghelp dbghelp.dll
67+
devenum devenum.dll
68+
dinput dinput.dll
69+
dinput8 dinput8.dll
70+
directmusic dmusic.dll
71+
directplay dplayx.dll
72+
dpvoice dpvoice.dll dpvvox.dll dpvacm.dll
73+
dsdmo dsdmo.dll
74+
dxtrans dxtrans.dll
75+
dxvk0054 d3d11.dll dxgi.dll
76+
dxvk0060 d3d11.dll dxgi.dll
77+
dxvk0061 d3d11.dll dxgi.dll
78+
dxvk0062 d3d11.dll dxgi.dll
79+
dxvk0063 d3d11.dll dxgi.dll
80+
dxvk0064 d3d11.dll dxgi.dll
81+
dxvk0065 d3d11.dll dxgi.dll
82+
dxvk0070 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
83+
dxvk0071 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
84+
dxvk0072 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
85+
dxvk0080 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
86+
dxvk0081 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
87+
dxvk0090 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
88+
dxvk0091 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
89+
dxvk0092 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
90+
dxvk0093 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
91+
dxvk0094 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
92+
dxvk0095 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
93+
dxvk0096 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
94+
dxvk1000 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
95+
dxvk1001 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
96+
dxvk1002 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
97+
dxvk1003 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
98+
dxvk1011 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
99+
dxvk1020 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
100+
dxvk1021 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
101+
dxvk1022 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
102+
dxvk1023 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
103+
dxvk1030 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
104+
dxvk1031 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
105+
dxvk1032 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
106+
dxvk1033 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
107+
dxvk1034 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
108+
dxvk1040 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
109+
dxvk1041 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
110+
dxvk1042 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
111+
dxvk1043 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
112+
dxvk1044 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
113+
dxvk1045 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
114+
dxvk1046 d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
115+
dxvk1050 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
116+
dxvk1051 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
117+
dxvk1052 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
118+
dxvk1053 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
119+
dxvk1054 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
120+
dxvk1055 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
121+
dxvk1060 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
122+
dxvk1061 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
123+
dxvk1070 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
124+
dxvk1071 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
125+
dxvk1072 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
126+
dxvk1073 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
127+
dxvk1080 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
128+
dxvk1081 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
129+
dxvk1090 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
130+
dxvk1091 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
131+
dxvk1092 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
132+
dxvk1093 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
133+
dxvk1094 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
134+
dxvk1100 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
135+
dxvk1101 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
136+
dxvk1102 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
137+
dxvk1103 d3d9.dll d3d10.dll d3d10_1.dll d3d10core.dll d3d11.dll dxgi.dll
138+
dxvk2000 d3d9.dll d3d10core.dll d3d11.dll dxgi.dll
139+
dxvk2010 d3d9.dll d3d10core.dll d3d11.dll dxgi.dll
140+
dxvk2020 d3d9.dll d3d10core.dll d3d11.dll dxgi.dll
141+
dxvk2030 d3d9.dll d3d10core.dll d3d11.dll dxgi.dll
142+
dxvk d3d9.dll d3d10core.dll d3d11.dll dxgi.dll
143+
dxvk_nvapi0061 nvapi.dll nvapi64.dll
144+
vkd3d d3d12.dll d3d12core.dll
145+
dmusic32 dmusic32.dll
146+
dmband dmband.dll
147+
dmcompos dmcompos.dll
148+
dmime dmime.dll
149+
dmloader dmloader.dll
150+
dmscript dmscript.dll
151+
dmstyle dmstyle.dll
152+
dmsynth dmsynth.dll
153+
dmusic dmusic.dll
154+
dswave dswave.dll
155+
dx8vb dx8vb.dll
156+
dxdiagn dxdiagn.dll
157+
dxdiagn_feb2010 dxdiagn.dll
158+
dsound dsound.dll
159+
esent esent.dll
160+
faudio1901 FAudio.dll
161+
faudio1902 FAudio.dll
162+
faudio1903 FAudio.dll
163+
faudio1904 FAudio.dll
164+
faudio1905 FAudio.dll
165+
faudio1906 FAudio.dll
166+
faudio190607 FAudio.dll
167+
faudio FAudio.dll
168+
galliumnine02 d3d9-nine.dll ninewinecfg.exe
169+
galliumnine03 d3d9-nine.dll ninewinecfg.exe
170+
galliumnine04 d3d9-nine.dll ninewinecfg.exe
171+
galliumnine05 d3d9-nine.dll ninewinecfg.exe
172+
galliumnine06 d3d9-nine.dll ninewinecfg.exe
173+
galliumnine07 d3d9-nine.dll ninewinecfg.exe
174+
galliumnine08 d3d9-nine.dll ninewinecfg.exe
175+
galliumnine09 d3d9-nine.dll ninewinecfg.exe
176+
galliumnine d3d9-nine.dll ninewinecfg.exe
177+
gdiplus gdiplus.dll
178+
gdiplus_winxp gdiplus.dll
179+
glidewrapper glide3x.dll
180+
gfw xlive.dll
181+
dirac DiracDecoder.dll
182+
ffdshow ff_liba52.dll
183+
hid hid.dll
184+
icodecs ir50_32.dll
185+
iertutil iertutil.dll
186+
itircl itircl.dll
187+
itss itss.dll
188+
cinepak iccvid.dll
189+
jet40 dao360.dll
190+
lavfilters avfilter-lav-7.dll
191+
lavfilters702 avfilter-lav-6.dll
192+
mdx microsoft.directx.dll
193+
mf mf.dll
194+
mfc40 mfc40.dll
195+
mfc70 mfc70.dll
196+
msaa oleacc.dll oleaccrc.dll msaatext.dll
197+
msacm32 msacm32.dll
198+
msasn1 msasn1.dll
199+
msctf msctf.dll
200+
msdelta msdelta.dll
201+
msls31 msls31.dll
202+
msftedit msftedit.dll
203+
msvcrt40 msvcrt40.dll
204+
msxml3 msxml3.dll
205+
msxml4 msxml4.dll
206+
msxml6 msxml6.dll
207+
ogg AxPlayer.dll
208+
ole32 ole32.dll
209+
oleaut32 oleaut32.dll
210+
openal OpenAL32.dll
211+
pdh pdh.dll
212+
pdh_nt4 pdh.dll
213+
pngfilt pngfilt.dll
214+
prntvpt prntvpt.dll
215+
qasf qasf.dll
216+
qcap qcap.dll
217+
qdvd qdvd.dll
218+
qedit qedit.dll
219+
quartz quartz.dll
220+
quartz_feb2010 quartz.dll
221+
riched20 riched20.dll
222+
riched30 riched20.dll msls31.dll
223+
sapi sapi.dll
224+
sdl SDL.dll
225+
secur32 secur32.dll
226+
setupapi setupapi.dll
227+
uiribbon uiribbonres.dll
228+
updspapi updspapi.dll
229+
urlmon urlmon.dll
230+
usp10 usp10.dll
231+
vb3run Vbrun300.dll
232+
vb4run Vb40032.dll
233+
vb5run msvbvm50.dll
234+
vb6run msvbvm60.dll
235+
vcrun6 mfc42.dll
236+
mfc42 mfc42u.dll
237+
msvcirt msvcirt.dll
238+
vcrun6sp6 mfc42.dll
239+
vcrun2003 msvcp71.dll
240+
mfc71 mfc71.dll
241+
vcrun2005 mfc80.dll
242+
mfc80 mfc80.dll
243+
vcrun2008 msdia90.dll
244+
mfc90 mfc90.dll
245+
vcrun2010 mfc100.dll
246+
mfc100 mfc100u.dll
247+
vcrun2012 mfc110.dll
248+
mfc110 mfc110u.dll
249+
vcrun2013 mfc120.dll
250+
mfc120 mfc120u.dll
251+
vcrun2015 mfc140.dll
252+
mfc140 mfc140u.dll
253+
vcrun2017 mfc140.dll
254+
vcrun2019 mfc140.dll
255+
ucrtbase2019 ucrtbase.dll
256+
vcrun2022 vcruntime140.dll
257+
vjrun20 VJSharpSxS10.dll
258+
webio webio.dll
259+
windowscodecs WindowsCodecs.dll
260+
winhttp winhttp.dll
261+
wininet wininet.dll
262+
wininet_win2k wininet.dll
263+
wmi wbemcore.dll
264+
wmv9vcm wmv9vcm.dll
265+
wsh57 scrrun.dll
266+
xact xactengine2_0.dll
267+
xact_x64 xactengine2_0.dll
268+
xinput xinput1_1.dll
269+
xmllite xmllite.dll
270+
xna31 Microsoft.Xna.Framework.Game.dll
271+
xna40 XnaNative.dll
272+
ie6 iedetect.dll
273+
"
274+
275+
# Function to display help/usage instructions
276+
show_help() {
277+
echo "Usage: $0 <file-path>"
278+
echo "This script checks for DLL dependencies in the specified file and matches them against a known list."
279+
echo ""
280+
echo "Options:"
281+
echo " -h, --help Display this help message and exit."
282+
echo ""
283+
echo "Example:"
284+
echo " $0 /path/to/your/file.exe"
285+
}
286+
287+
# Check if no argument is provided or if the argument is -h or --help
288+
if [[ -z "$1" || "$1" == "--help" || "$1" == "-h" ]]; then
289+
show_help
290+
exit 0
291+
fi
292+
293+
# Process the file to find DLL dependencies
294+
for depends in $(strings "$1" | grep -i '\.dll$' | sort -u); do
295+
echo "$dllList" | grep "\b$depends\b"
296+
done
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
#!/usr/bin/env bash
2+
3+
# 2023-2023, Bruno Gonçalves <www.biglinux.com.br>
4+
#
5+
# Redistribution and use in source and binary forms, with or without
6+
# modification, are permitted provided that the following conditions
7+
# are met:
8+
# 1. Redistributions of source code must retain the above copyright
9+
# notice, this list of conditions and the following disclaimer.
10+
# 2. Redistributions in binary form must reproduce the above copyright
11+
# notice, this list of conditions and the following disclaimer in the
12+
# documentation and/or other materials provided with the distribution.
13+
#
14+
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15+
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16+
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17+
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18+
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19+
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20+
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21+
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23+
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24+
25+
# Example of usage, first declare variable, after call function:
26+
# PacmanPkgName="gimp" getPacmanInfoByPkgName
27+
# By default use this functions only generate variables and arrays
28+
# Nothing is printed on screen
29+
# See in the end of file an example of usage like this:
30+
# TestPacmanInfoByPkgName=true PkgName=firefox ./read_pacman.sh
31+
32+
33+
# Declare an associative array to hold package search results
34+
declare -A DllName
35+
36+
# Declare a simple array to hold package names
37+
declare -a AppNames
38+
39+
# Run the pacman search command and store its output
40+
CommandOutput=$(grep -e '^w_metadata ' -e 'installed_file' /usr/bin/winetricks)
41+
# Initialize an empty variable for the package name
42+
appName=""
43+
44+
# Loop through each line of the command output
45+
while IFS= read -r line; do
46+
# Check if the line starts with an alphabet (usually means it's a package name)
47+
if [[ "${line:0:1}" = [a-zA-Z] ]]; then
48+
# Extract the package name from the line
49+
appName="${line#* }"
50+
appName="${appName%% *}"
51+
# Add the package name to the AppNames array
52+
AppNames+=("$appName")
53+
else
54+
# Store the Dll of the package
55+
key="${appName}:Dll"
56+
dll="${line##*/}"
57+
DllName["$key"]+=" ${dll%%[ \"]*}"
58+
fi
59+
done <<< "$CommandOutput"
60+
61+
# Loop through each package name to show its information
62+
for pkgName in "${AppNames[@]}"; do
63+
64+
if [[ "${DllName["$pkgName:Dll"]}" =~ \.dll ]]; then
65+
echo "$pkgName ${DllName["$pkgName:Dll"]}"
66+
fi
67+
done

0 commit comments

Comments
 (0)