-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-package.sh
executable file
·39 lines (33 loc) · 1.17 KB
/
build-package.sh
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
#!/bin/sh
VER="1.13.0"
mkdir -p deb/usr/local/bin
mkdir -p deb/usr/local/lib/wine_helper
mkdir -p deb/usr/local/share/wine_helper
mkdir -p deb/usr/local/etc/wine_helper
mkdir -p deb/DEBIAN
cat > deb/DEBIAN/control << EOF
Package: wine-scripts
Version: $VER
Section: otherosfs
Architecture: all
Installed-Size: 29.1K
Depends: bash | sh | dash, awk, sed, curl
Suggests: wine | wine-staging, winetricks
Priority: optional
Maintainer: Volk_Milit <[email protected]>
Description: WINE is not emulator helper scripts for easy using multiply wine installations in any place you like.
EOF
cp src/wine* deb/usr/local/bin
cp src/libs/wine* deb/usr/local/lib/wine_helper
cp src/share/help* deb/usr/local/share/wine_helper
cp src/share/settings.conf deb/usr/local/etc/wine_helper
sudo chown root:root deb/usr/local/bin/*
sudo chown root:root deb/usr/local/lib/wine_helper/*
sudo chown root:root deb/usr/local/share/wine_helper/*
sudo chown root:root deb/usr/local/etc/wine_helper/*
cd deb
md5sum $(find ./ -type f | awk '!/^\.\/DEBIAN/ { print substr($0, 3) }') > DEBIAN/md5sums ; chmod 0644 DEBIAN/md5sums
cd ..
fakeroot dpkg-deb --build deb
#lintian deb.deb
mv deb.deb wine-scripts-"$VER"_any.deb