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
|
#-- meta data
VERSION=$(version --get:plugin st2.py --write:rpmspec _package.epm --write:python st2.py)
echo "------------------ source .txz ------------------"
cd ..
pax -wvJf streamtuner2-$VERSION.src.txz \
streamtuner2/*.py streamtuner2/*.xml streamtuner2/channels/*.{py,png} \
streamtuner2/*.png streamtuner2/*.svg streamtuner2/*.desktop \
streamtuner2/README streamtuner2/help/* streamtuner2/contrib/* \
streamtuner2/bundle/* streamtuner2/bundle/*/* streamtuner2/bundle/*/*/* streamtuner2/bundle/*/*/*/* \
streamtuner2/PKG-INFO streamtuner2/version streamtuner2/_pack streamtuner2/*.epm
# streamtuner2/scripts
cd -
mv ../streamtuner2-*.txz linux-3.0-all/
echo "-------------------- .deb -----------------------"
fakeroot epm -vvv -n -a all -f deb DEP=deb streamtuner2 _package.epm
dpkg-sig -s builder -k include-once linux-3.0-all/streamtuner2-$VERSION.deb
####echo "------------------ slackware --------------------"
####epm -vvv -n -a all -f slackware streamtuner2 _package.epm
echo "-------------- .tar.gz installer ---------------"
epm -vvv -n -a all -f portable -s streamtuner2.png streamtuner2 _package.epm
mv linux-3.0-all/streamtuner2-$VERSION.tar.gz linux-3.0-all/streamtuner2-$VERSION.bin.tgz
echo "-------------------- .rpm -----------------------"
epm -vvv -n -a all -f rpm streamtuner2 _package.epm
mkdir linux-3.0-all/BUILD
/usr/bin/rpmbuild -bb --buildroot $(pwd)/linux-3.0-all/buildroot --target all linux-3.0-all/streamtuner2.spec
mv linux-3.0-all/RPMS/all/*.rpm linux-3.0-all/streamtuner2-$VERSION.rpm
rm -r linux-3.0-all/BUILD
rm -r linux-3.0-all/RPMS
rm -r linux-3.0-all/rpms
#rm -r linux-3.0-all/buildroot
rmdir linux-3.0-all/streamtuner2-$VERSION
rm linux-3.0-all/streamtuner2.spec
echo "-------------------- win32 -----------------------"
for pkg in "win32"
do
epm-win32sfx -v streamtuner2 _package.epm
done
mv win32/*exe linux-3.0-all/
rmdir win32
|
|
>
>
|
>
>
>
>
>
>
>
>
|
>
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
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
|
# package up st2
# → now using fpm
#-- meta data
NAME=streamtuner2
VERSION=$(version --get:plugin st2.py --write:python st2.py)
#-- bundle
#fpm -s src -t deb -p "$NAME-$VERSION.deb" --prefix=/usr --deb-compression xz --deb-sign include-once -f st2.py
#fpm -s src -t rpm -p "$NAME-$VERSION.rpm" --prefix=/usr --rpm-compression xz -f st2.py
#fpm -s src -t exe -p "$NAME-$VERSION.exe" --prefix=c:/usr/ --exe-autoextract -f st2.py
fpm -s src -t tar -p "$NAME-$VERSION.bin.tar.xz" --prefix=/usr/local --verbose -f st2.py
exit
#dpkg-deb -I streamtuner2*deb
#dpkg-deb -c streamtuner2*deb
cd ..
pax -wvJf streamtuner2-$VERSION.src.txz \
streamtuner2/*.py streamtuner2/*.xml streamtuner2/channels/*.{py,png} \
streamtuner2/*.png streamtuner2/*.svg streamtuner2/*.desktop \
streamtuner2/README streamtuner2/help/* streamtuner2/contrib/* \
streamtuner2/bundle/* streamtuner2/bundle/*/* streamtuner2/bundle/*/*/* streamtuner2/bundle/*/*/*/* \
streamtuner2/PKG-INFO streamtuner2/version streamtuner2/_pack streamtuner2/*.epm
cd -
|