-
Notifications
You must be signed in to change notification settings - Fork 3
/
osx-post.sh
35 lines (32 loc) · 1.39 KB
/
osx-post.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
make clean
make -j4 || make -j4 || make
make install DESTDIR=/opt/osx-pkg/$PKG_NAME
for INST in $EXTRA_INST
do
install $INST /opt/osx-pkg/$PKG_NAME/opt/osx/bin
done
cd /opt/osx-pkg/$PKG_NAME/opt/osx
$AUTOPKG_HOME/osx-copy-deps.pl
cd /opt/osx-pkg/$PKG_NAME/opt
set +e
find . -type f | grep /bin/ | xargs -rn1 x86_64-apple-darwin13-strip -S -x 2>/dev/null
find . -type f | grep /lib/ | xargs -rn1 x86_64-apple-darwin13-strip -S -x 2>/dev/null
find . -type f -name '*.a' | xargs -rn1 x86_64-apple-darwin13-strip -S -x 2>/dev/null
find . -type f -name '*.la' | xargs -rn1 rm -f 2>/dev/null
set -e
chmod -R uga+r osx
mv osx $PKG_NAME
zip -9r $PKG_NAME-$PKG_VER.zip $PKG_NAME
7za a $PKG_NAME-$PKG_VER.7z $PKG_NAME
tar -jcvf $PKG_NAME-$PKG_VER.tar.bz2 $PKG_NAME
rm -fv ~apertium/public_html/osx/$AUTOPKG_BUILDTYPE/$PKG_NAME-[0-9]*.zip
rm -fv ~apertium/public_html/osx/$AUTOPKG_BUILDTYPE/$PKG_NAME-[0-9]*.7z
rm -fv ~apertium/public_html/osx/$AUTOPKG_BUILDTYPE/$PKG_NAME-[0-9]*.tar.bz2
mv -v *.zip ~apertium/public_html/osx/$AUTOPKG_BUILDTYPE/
mv -v *.7z ~apertium/public_html/osx/$AUTOPKG_BUILDTYPE/
mv -v *.tar.bz2 ~apertium/public_html/osx/$AUTOPKG_BUILDTYPE/
cd ~apertium/public_html/osx/$AUTOPKG_BUILDTYPE/
ln -sfv $PKG_NAME-$PKG_VER.zip $PKG_NAME-latest.zip
ln -sfv $PKG_NAME-$PKG_VER.7z $PKG_NAME-latest.7z
ln -sfv $PKG_NAME-$PKG_VER.tar.bz2 $PKG_NAME-latest.tar.bz2
chown -R apertium:apertium ~apertium/public_html/osx