summaryrefslogtreecommitdiffstats
path: root/autopackage/default.apspec
blob: bbbff9f2964e4924b21a3a55c34c18c4324bde53 (plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# -*-shell-script-*-

[Meta]
RootName: @freedesktop.org/gtkqtengine:$SOFTWAREVERSION
DisplayName: Gtk-Qt theme engine
ShortName: gtk-qt-engine
Maintainer: David Sansome <[email protected]>
Packager: David Sansome <[email protected]>
Summary: A GTK theme engine that mimics the active Qt style
SoftwareVersion: 0.8
InterfaceVersion: 0
AutopackageTarget: 1.2
Repository: http://gtk-qt.ecs.soton.ac.uk/files/$SOFTWAREVERSION/$SHORTNAME.xml

[BuildPrepare]
arg1="INSTALL_PATH_GTK_ENGINES:PATH=$build_root/lib/gtk-2.0/2.4.0/engines"
arg2="INSTALL_PATH_GTK_THEMES:PATH=$build_root/share/themes"
arg3="INSTALL_PATH_KCONTROL_MODULES:PATH=$build_root/lib"
arg4="CMAKE_INSTALL_PREFIX:PATH=$build_root"

export APBUILD_STATIC="Xrender"
export CC=`which apgcc`
export CXX=`which apg++`

if [[ "$APKG_BUILD_SKIP_CONFIGURE" != "1" ]]; then
	out "$intl_CONFIGURING"
	
	rm CMakeCache.txt
	cmake -D $arg1 -D $arg2 -D $arg3 -D $arg4 .
	
	if [[ "$?" == "0" ]]; then
		outn "$intl_CONFIGURING"; green; out "$intl_DONE"; normal;
	else
		outn "$intl_CONFIGURING"; red; echo "$intl_FAILED"; normal;
		exit 1;
	fi
fi

if [[ "$APKG_BUILD_SKIP_MAKE" != "1" ]]; then
	out "$intl_MAKING";
	
	make clean
	make
	
	if [[ "$?" == "0" ]]; then
		outn "$intl_MAKING"; green; out "$intl_DONE"; normal;
	else
		outn "$intl_MAKING"; red; echo "$intl_FAILED"; normal;
		exit 1;
	fi
fi


out "$intl_INSTALLING" "$build_root";
make install
if [[ "$?" == "0" ]]; then
	outn "$intl_INSTALLING"; green; out "$intl_DONE"; normal;
else
	outn "$intl_INSTALLING"; red; echo "$intl_FAILED"; normal;
	exit 1;
fi


export _virtual_build_root="$build_root"

[BuildUnprepare]
unprepareBuild

[Imports]
echo '*' | import

[Prepare]
require @kde.org/tdelibs 3.1
require @gtk.org/gtk 2
removeOwningPackage $PREFIX/lib/gtk-2.0/engines/libtqtengine.so

[Install]
outputStatus "Installing theme engine library..."
mkdirs "$PREFIX/lib/gtk-2.0/engines/"
copyFile --silent lib/gtk-2.0/2.4.0/engines/libtqtengine.so "$PREFIX/lib/gtk-2.0/engines/libtqtengine.so"

outputStatus "Installing theme..."
mkdirs "$PREFIX/share/themes/Qt/gtk-2.0"
copyFile --silent share/themes/Qt/gtk-2.0/gtkrc "$PREFIX/share/themes/Qt/gtk-2.0/gtkrc"

outputStatus "Installing KDE control center module..."
mkdirs "$PREFIX/lib/trinity"
copyFile --silent lib/trinity/kcm_kcmgtk.so "$PREFIX/lib/trinity/kcm_kcmgtk.so"
copyFile --silent lib/trinity/kcm_kcmgtk.la "$PREFIX/lib/trinity/kcm_kcmgtk.la"
installMenuItem --no-path-adjust "Settings/LookNFeel" "share/applications/kcmgtk.desktop"

updateEnv GTK_PATH "$PREFIX/lib/gtk-2.0"
updateEnv TDEDIRS "$PREFIX"

[Uninstall]
uninstallFromLog