Added gtk+3-3.0.0 build template.

This commit is contained in:
Juan RP 2011-02-14 14:08:46 +01:00
parent 5b303e3c88
commit ea2045fa83
7 changed files with 144 additions and 0 deletions

1
srcpkgs/gir-gtk+3 Symbolic link
View file

@ -0,0 +1 @@
gtk+3

1
srcpkgs/gtk+3-devel Symbolic link
View file

@ -0,0 +1 @@
gtk+3

2
srcpkgs/gtk+3/depends Normal file
View file

@ -0,0 +1,2 @@
abi_depends=">=3.0.0"
api_depends="${abi_depends}"

View file

@ -0,0 +1,12 @@
# Template file for 'gir-gtk+'.
#
short_desc="Introspection data for GTK+"
long_desc="${long_desc}
This package contains small pieces of introspection data for the GTK+ library."
do_install()
{
install -d ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/girepository-1.0 ${DESTDIR}/usr/lib
}

View file

@ -0,0 +1,59 @@
# Template file for 'gtk+-devel'.
#
short_desc="${sourcepkg} (development files)"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
Add_dependency run glibc
Add_dependency run glib
Add_dependency run pango
Add_dependency run cairo
Add_dependency run gdk-pixbuf
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
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
Add_dependency run atk-devel
Add_dependency run cairo-devel
Add_dependency run gdk-pixbuf-devel
Add_dependency run libpng-devel
Add_dependency run glib-devel
Add_dependency run freetype-devel
Add_dependency run fontconfig-devel
Add_dependency run gtk+3
Add_dependency run python
do_install()
{
local lver="3.0.0"
local libdirs="immodules printbackends engines"
for dir in ${libdirs}; do
mkdir -p ${DESTDIR}/usr/lib/gtk-3.0/${lver}/${dir}
done
mkdir -p ${DESTDIR}/usr/bin
mkdir -p ${DESTDIR}/usr/share/man/man1
mkdir -p ${DESTDIR}/usr/lib/gtk-3.0/modules
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
for bin in gtk3-demo; do
mv ${SRCPKGDESTDIR}/usr/bin/${bin} ${DESTDIR}/usr/bin
[ ! -f ${SRCPKGDESTDIR}/usr/share/man/man1/${bin}.1 ] && \
continue
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/share/{gir-*,gtk-doc} ${DESTDIR}/usr/share
mv ${SRCPKGDESTDIR}/usr/share/aclocal ${DESTDIR}/usr/share
mv ${SRCPKGDESTDIR}/usr/share/gtk-3.0 ${DESTDIR}/usr/share
}

66
srcpkgs/gtk+3/template Normal file
View file

@ -0,0 +1,66 @@
# Template build file for 'gtk+3'.
pkgname=gtk+3
version=3.0.0
wrksrc="gtk+-${version}"
distfiles="${GNOME_SITE}/gtk+/3.0/gtk+-$version.tar.bz2"
build_style=gnu_configure
configure_args="--disable-cups --disable-schemas-compile
--enable-gtk2-dependency"
short_desc="The GTK+ toolkit (v3)"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=ec0729bf28f09a16e0b0a6a588556c7cee091f40426505b3694a9488bf6cbf67
long_desc="
GTK+ is a multi-platform toolkit for creating graphical user
interfaces. Offering a complete set of widgets, GTK+ is suitable for
projects ranging from small one-off tools to complete application
suites.
GTK+ has been designed from the ground up to support a range of
languages, not only C/C++. Using GTK+ from languages such as Perl and
Python (especially in combination with the Glade GUI builder) provides
an effective method of rapid application development."
triggers="gtk3-immodules gsettings-schemas"
conf_files="/etc/gtk-3.0/im-multipress.conf"
subpackages="gir-gtk+3 gtk+3-devel"
Add_dependency run glibc
Add_dependency run glib
Add_dependency run atk
Add_dependency run pango
Add_dependency run cairo
Add_dependency run libpng
Add_dependency run fontconfig
Add_dependency run freetype
Add_dependency run gdk-pixbuf
Add_dependency run libXext
Add_dependency run libXinerama
Add_dependency run libXi
Add_dependency run libXrandr
Add_dependency run libXcursor
Add_dependency run libX11
Add_dependency run libXcomposite
Add_dependency run libXdamage
Add_dependency run libXfixes
Add_dependency build libXext-devel
Add_dependency build libXinerama-devel
Add_dependency build libXi-devel
Add_dependency build libXrandr-devel
Add_dependency build libXcursor-devel
Add_dependency build pango-devel
Add_dependency build libX11-devel
Add_dependency build libXcomposite-devel
Add_dependency build libXdamage-devel
Add_dependency build libXfixes-devel
Add_dependency build atk-devel
Add_dependency build cairo-devel
Add_dependency build gdk-pixbuf-devel
Add_dependency build glibc-devel
Add_dependency build libpng-devel
Add_dependency build glib-devel
Add_dependency build freetype-devel
Add_dependency build fontconfig-devel
Add_dependency full gtk+ ">=0" # for gtk-update-icon-cache
Add_dependency full shared-mime-info

View file

@ -760,3 +760,6 @@ libjson-glib-1.0.so json-glib json-glib-devel
liblxc.so liblxc lxc-devel
libvirt.so libvirt libvirt-devel
libvirt-qemu.so libvirt libvirt-devel
libgdk-3.so gtk+3 gtk+3-devel
libgtk-3.so gtk+3 gtk+3-devel
libgailutil-3.so gtk+3 gtk+3-devel