1 |
Info2: << |
Info2: << |
2 |
Package: valknut%type_pkg[-qttoolkit] |
Package: valknut%type_pkg[-qttoolkit] |
3 |
Version: 0.3.8 |
Version: 0.3.11 |
4 |
Revision: 1 |
Revision: 1 |
5 |
Description: Direct Connect protocol QT client |
Description: Direct Connect protocol QT client |
6 |
Type: -qttoolkit (-aqua -x11) |
Type: -qttoolkit (-aqua -x11) |
8 |
Maintainer: Hanspeter Niederstrasser <nieder@users.sourceforge.net> |
Maintainer: Hanspeter Niederstrasser <nieder@users.sourceforge.net> |
9 |
Depends: << |
Depends: << |
10 |
bzip2-shlibs, |
bzip2-shlibs, |
11 |
dclib0-unified-shlibs (>= %v-1), |
dclib0-unified-shlibs (>= 0.3.11-1), |
12 |
libiconv, |
libiconv, |
13 |
libpng3-shlibs, |
libpng3-shlibs, |
14 |
libxml2-shlibs, |
libxml2-shlibs, |
18 |
<< |
<< |
19 |
BuildDepends: << |
BuildDepends: << |
20 |
bzip2-dev, |
bzip2-dev, |
21 |
dclib0-unified (>= %v-1), |
dclib0-unified (>= 0.3.11-1), |
22 |
libiconv-dev, |
libiconv-dev, |
23 |
libpng3, |
libpng3, |
24 |
libxml2, |
libxml2, |
25 |
(%type_raw[-qttoolkit] = -x11) qt3, |
(%type_raw[-qttoolkit] = -x11) qt3, |
26 |
(%type_raw[-qttoolkit] = -aqua) qt3mac, |
(%type_raw[-qttoolkit] = -aqua) qt3mac, |
27 |
system-openssl-dev, |
system-openssl-dev, |
28 |
|
system-sdk-10.3, |
29 |
(%type_raw[-qttoolkit] = -x11) x11-dev |
(%type_raw[-qttoolkit] = -x11) x11-dev |
30 |
<< |
<< |
31 |
Conflicts: dcgui-qt, dcgui-qt-ssl, valknut, valknut-ssl |
Conflicts: dcgui-qt, dcgui-qt-ssl, valknut, valknut-ssl |
35 |
<< |
<< |
36 |
Replaces: dcgui-qt, dcgui-qt-ssl, valknut, valknut-ssl |
Replaces: dcgui-qt, dcgui-qt-ssl, valknut, valknut-ssl |
37 |
Source: mirror:sourceforge:wxdcgui/%{ni}-%v.tar.bz2 |
Source: mirror:sourceforge:wxdcgui/%{ni}-%v.tar.bz2 |
38 |
Source2: http://snaggledworks.com/fink/valknutapp-%v.tar.bz2 |
Source-MD5: d485a7ed734d6ceadc0067b7c4254a60 |
|
Source-MD5: 047f94ef65ba40a5303c8323a5510619 |
|
|
Source2-MD5: 42190ae650f63e836ac38a73edfea780 |
|
39 |
SetLDFLAGS: -L%p/lib/system-openssl/lib |
SetLDFLAGS: -L%p/lib/system-openssl/lib |
40 |
ConfigureParams: << |
ConfigureParams: << |
41 |
--with-libdc=%p \ |
--with-libdc=%p \ |
43 |
(%type_raw[-qttoolkit] = -aqua) --with-qt-includes=%p/lib/qt3mac/include \ |
(%type_raw[-qttoolkit] = -aqua) --with-qt-includes=%p/lib/qt3mac/include \ |
44 |
(%type_raw[-qttoolkit] = -aqua) --enable-mac \ |
(%type_raw[-qttoolkit] = -aqua) --enable-mac \ |
45 |
(%type_raw[-qttoolkit] = -aqua) --enable-osx \ |
(%type_raw[-qttoolkit] = -aqua) --enable-osx \ |
46 |
(%type_raw[-qttoolkit] = -x11) --with-qt-dir=%p \ |
(%type_raw[-qttoolkit] = -x11) --with-qt-dir=%p/lib/qt3 \ |
47 |
(%type_raw[-qttoolkit] = -x11) --with-qt-includes=%p/include/qt \ |
(%type_raw[-qttoolkit] = -x11) --with-qt-includes=%p/include/qt \ |
48 |
--with-ssl-dir=%p/lib/system-openssl \ |
--with-ssl-dir=%p/lib/system-openssl \ |
49 |
--disable-dependency-tracking |
--disable-dependency-tracking |
60 |
<< |
<< |
61 |
InstallScript: << |
InstallScript: << |
62 |
#!/bin/sh -ev |
#!/bin/sh -ev |
63 |
if [ "%type_raw[-qttoolkit]" == "-x11" ]; then |
if [ "%type_raw[-qttoolkit]" == "-x11" ]; then |
64 |
/usr/bin/make -w install DESTDIR=%d |
/usr/bin/make -w install DESTDIR=%d |
65 |
else |
else |
66 |
# |
/usr/bin/make -w install-osx-app-bundle |
67 |
# Based on NYZetas Howto: |
/usr/bin/install -d -m 755 %i/Applications |
68 |
# http://www.stud.ntnu.no/~chrisj/download/howto/valknut_howto.html |
/bin/mv -f Valknut.app %i/Applications/Valknut.app |
69 |
# and ravemax's original INSTALL.MAC |
fi |
|
|
|
|
QTMACDIR=%p/lib/qt3mac |
|
|
TS_TO_QM=${QTMACDIR}/bin/lrelease |
|
|
TS_DIR=valknut/ts |
|
|
ICONS_DIR=valknut/icons |
|
|
V_NAME=Valknut |
|
|
V_VERSION=%v |
|
|
V_SERIAL=20061213 |
|
|
|
|
|
#Starting generation |
|
|
|
|
|
APP_NAME=${V_NAME}.app |
|
|
|
|
|
#APP DIR |
|
|
echo "Creating ${APP_NAME}"; |
|
|
/bin/mkdir ${APP_NAME} |
|
|
|
|
|
# Translation files |
|
|
TRANS_DIR=${APP_NAME}/translation; |
|
|
/bin/mkdir ${TRANS_DIR}; |
|
|
echo "Generating path: ${TRANS_DIR}"; |
|
|
for i in ${TS_DIR}/*.ts; do |
|
|
${TS_TO_QM} $i; |
|
|
/bin/mv ${TS_DIR}/$(basename $i ts)qm ${TRANS_DIR} |
|
|
done |
|
|
echo "Copying from ${TS_DIR}"; |
|
|
|
|
|
# Icons |
|
|
/bin/mkdir ${APP_NAME}/icons ${APP_NAME}/icons/{user,user/default,emot,emot/default,appl,appl/default} |
|
|
echo "Generating path: ${APP_NAME}/icons"; |
|
|
echo "Generating path: ${APP_NAME}/icons/user/default"; |
|
|
echo "Generating path: ${APP_NAME}/icons/emot/default"; |
|
|
echo "Generating path: ${APP_NAME}/icons/appl/default"; |
|
|
echo "Copying from ${ICONS_DIR}"; |
|
|
/bin/cp ${ICONS_DIR}/*.x* ${APP_NAME}/icons/appl/default |
|
|
/bin/mv ${APP_NAME}/icons/appl/default/emoticons.* ${APP_NAME}/icons/emot/default |
|
|
/bin/mv ${APP_NAME}/icons/appl/default/usericons.* ${APP_NAME}/icons/user/default |
|
|
|
|
|
# Contents |
|
|
CNT_DIR=${APP_NAME}/Contents; |
|
|
/bin/mkdir ${CNT_DIR}; |
|
|
echo "Generating path: ${CNT_DIR}"; |
|
|
echo "Installing file: PkgInfo"; |
|
|
/bin/cp PkgInfo ${CNT_DIR}/PkgInfo |
|
|
echo "Installing file: Info.plist"; |
|
|
/bin/cp Info.plist ${CNT_DIR}/Info.plist |
|
|
|
|
|
# Copy the executable |
|
|
MACOS_DIR=${CNT_DIR}/MacOS; |
|
|
echo "Generating path: ${MACOS_DIR}" |
|
|
/bin/mkdir ${MACOS_DIR} |
|
|
echo "Generating file: PkgInfo"; |
|
|
echo "Copying from valknut/"; |
|
|
/bin/cp valknut/valknut ${MACOS_DIR}/valknut |
|
|
echo "Stripping valknut"; |
|
|
/usr/bin/strip ${MACOS_DIR}/valknut |
|
|
|
|
|
# Copy Icon |
|
|
RSC_DIR=${CNT_DIR}/Resources |
|
|
echo "Generating path: ${RSC_DIR}" |
|
|
/bin/mkdir ${RSC_DIR} |
|
|
echo "Copying from ${ICONS_DIR}"; |
|
|
/bin/cp ${ICONS_DIR}/icon_128x128.icns $RSC_DIR/${V_NAME}.icns |
|
|
|
|
|
# Move the .app bundle to %p/Applications |
|
|
/usr/bin/install -d -m 755 %i/Applications |
|
|
/bin/mv -f ${APP_NAME} %i/Applications/${APP_NAME} |
|
|
fi |
|
70 |
<< |
<< |
71 |
PostInstScript: << |
PostInstScript: << |
72 |
if [ "%type_raw[-qttoolkit]" == "-aqua" ]; then |
if [ "%type_raw[-qttoolkit]" == "-aqua" ]; then |