2009-04-18 15:05:00 +00:00
|
|
|
# Template file for 'gtk+-devel'.
|
|
|
|
#
|
|
|
|
short_desc="${sourcepkg} (development files)"
|
|
|
|
long_desc="${long_desc}
|
|
|
|
|
|
|
|
This package contains files for development, headers, static libs, etc."
|
|
|
|
|
2010-12-17 15:25:41 +00:00
|
|
|
Add_dependency run glibc
|
|
|
|
Add_dependency run glib
|
|
|
|
Add_dependency run pango
|
|
|
|
Add_dependency run cairo
|
|
|
|
Add_dependency run gdk-pixbuf
|
2010-10-23 15:50:19 +00:00
|
|
|
Add_dependency run pkg-config
|
|
|
|
Add_dependency run libXext-devel
|
|
|
|
Add_dependency run libXrender-devel
|
|
|
|
Add_dependency run libXinerama-devel
|
|
|
|
Add_dependency run libXi-devel
|
|
|
|
Add_dependency run libXrandr-devel
|
|
|
|
Add_dependency run libXcursor-devel
|
2009-12-24 15:04:45 +00:00
|
|
|
Add_dependency run pango-devel
|
|
|
|
Add_dependency run libX11-devel
|
|
|
|
Add_dependency run libXcomposite-devel
|
|
|
|
Add_dependency run libXdamage-devel
|
|
|
|
Add_dependency run libXfixes-devel
|
2010-10-23 15:50:19 +00:00
|
|
|
Add_dependency run atk-devel
|
|
|
|
Add_dependency run cairo-devel
|
|
|
|
Add_dependency run gdk-pixbuf-devel
|
|
|
|
Add_dependency run libpng-devel
|
2011-02-26 08:48:04 +00:00
|
|
|
Add_dependency run glib-devel ">=2.28.0"
|
2010-10-23 15:50:19 +00:00
|
|
|
Add_dependency run freetype-devel
|
|
|
|
Add_dependency run fontconfig-devel
|
2009-04-18 15:05:00 +00:00
|
|
|
Add_dependency run gtk+
|
|
|
|
Add_dependency run python
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
local lver="2.10.0"
|
2010-10-23 15:50:19 +00:00
|
|
|
local libdirs="immodules printbackends engines"
|
2009-04-18 15:05:00 +00:00
|
|
|
|
|
|
|
for dir in ${libdirs}; do
|
|
|
|
mkdir -p ${DESTDIR}/usr/lib/gtk-2.0/${lver}/${dir}
|
|
|
|
done
|
|
|
|
mkdir -p ${DESTDIR}/usr/bin
|
|
|
|
mkdir -p ${DESTDIR}/usr/share/man/man1
|
|
|
|
mkdir -p ${DESTDIR}/usr/lib/gtk-2.0/modules
|
|
|
|
|
|
|
|
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
|
2010-12-17 15:25:41 +00:00
|
|
|
for bin in gtk-demo; do
|
2009-04-18 15:05:00 +00:00
|
|
|
mv ${SRCPKGDESTDIR}/usr/bin/${bin} ${DESTDIR}/usr/bin
|
2009-04-18 17:35:07 +00:00
|
|
|
[ ! -f ${SRCPKGDESTDIR}/usr/share/man/man1/${bin}.1 ] && \
|
|
|
|
continue
|
2009-04-18 15:05:00 +00:00
|
|
|
mv ${SRCPKGDESTDIR}/usr/share/man/man1/${bin}.1 \
|
|
|
|
${DESTDIR}/usr/share/man/man1
|
|
|
|
done
|
|
|
|
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib
|
|
|
|
mv ${SRCPKGDESTDIR}/usr/lib/gtk-2.0/include ${DESTDIR}/usr/lib/gtk-2.0
|
2010-10-24 15:38:21 +00:00
|
|
|
mv ${SRCPKGDESTDIR}/usr/share/{gir-*,gtk-doc} ${DESTDIR}/usr/share
|
2009-04-18 15:05:00 +00:00
|
|
|
mv ${SRCPKGDESTDIR}/usr/share/aclocal ${DESTDIR}/usr/share
|
|
|
|
mv ${SRCPKGDESTDIR}/usr/share/gtk-2.0 ${DESTDIR}/usr/share
|
|
|
|
}
|