diff options
Diffstat (limited to 'libre')
25 files changed, 334 insertions, 37 deletions
diff --git a/libre/audacious-plugins-libre/PKGBUILD b/libre/audacious-plugins-libre/PKGBUILD index b29567abf..47c884106 100644 --- a/libre/audacious-plugins-libre/PKGBUILD +++ b/libre/audacious-plugins-libre/PKGBUILD @@ -6,7 +6,7 @@ pkgname=audacious-plugins-libre pkgver=2.4.4 pkgrel=3 pkgdesc='Plugins for Audacious without unfree plugins' -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url='http://audacious-media-player.org/' license=('GPL') provides=("audacious-plugins=$pkgver") diff --git a/libre/aufs2-libre/PKGBUILD b/libre/aufs2-libre/PKGBUILD index bd177ef9c..f12df73ae 100644 --- a/libre/aufs2-libre/PKGBUILD +++ b/libre/aufs2-libre/PKGBUILD @@ -7,7 +7,7 @@ pkgrel=4 #_kernver=${pkgver%_*}-LIBRE _kernver=2.6.38-LIBRE pkgdesc="Another Unionfs Implementation for the Linux-Libre kernel" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://aufs.sourceforge.net/" license=('GPL2') depends=('kernel26-libre>=2.6.38' 'kernel26-libre<2.6.39') diff --git a/libre/ffmpeg-libre/PKGBUILD b/libre/ffmpeg-libre/PKGBUILD index 41c332dca..10aa642a4 100644 --- a/libre/ffmpeg-libre/PKGBUILD +++ b/libre/ffmpeg-libre/PKGBUILD @@ -8,7 +8,7 @@ pkgname=ffmpeg-libre pkgver=20110330 pkgrel=1 pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix. Libre version without faac" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://ffmpeg.org/" license=('GPL') depends=('bzip2' 'lame' 'sdl' 'libvorbis' 'xvidcore' 'zlib' 'x264' 'libtheora' 'opencore-amr' 'alsa-lib' 'libvdpau' 'libxfixes' 'schroedinger' 'libvpx' 'libva' 'openjpeg') diff --git a/libre/ghostscript-libre/PKGBUILD b/libre/ghostscript-libre/PKGBUILD index 4c2e4f7ec..ac032e4af 100644 --- a/libre/ghostscript-libre/PKGBUILD +++ b/libre/ghostscript-libre/PKGBUILD @@ -6,7 +6,7 @@ pkgname=ghostscript-libre pkgver=9.02 pkgrel=1 pkgdesc="An interpreter for the PostScript language without non-free files" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') license=('GPL3') #non free files removed depends=('libxt' 'libcups' 'fontconfig' 'jasper' 'zlib' 'libpng' 'libjpeg' 'libtiff') makedepends=('gtk2' 'gnutls') diff --git a/libre/grub2/PKGBUILD b/libre/grub2/PKGBUILD index 6d884dcea..aa295065d 100644 --- a/libre/grub2/PKGBUILD +++ b/libre/grub2/PKGBUILD @@ -13,7 +13,7 @@ pkgbase="grub2" pkgver='1.99~rc1' pkgrel=4 url="http://www.gnu.org/software/grub/" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') license=('GPL3') makedepends=('bdf-unifont' 'python2' 'xz' 'autogen' 'texinfo' 'help2man' 'gettext' 'device-mapper') options=(strip purge docs zipman !emptydirs) diff --git a/libre/gstreamer0.10-bad-libre/PKGBUILD b/libre/gstreamer0.10-bad-libre/PKGBUILD index 7138b7ac0..6420d29f4 100644 --- a/libre/gstreamer0.10-bad-libre/PKGBUILD +++ b/libre/gstreamer0.10-bad-libre/PKGBUILD @@ -6,7 +6,7 @@ pkgbase=gstreamer0.10-bad-libre pkgname=('gstreamer0.10-bad-libre' 'gstreamer0.10-bad-libre-plugins') pkgver=0.10.21 pkgrel=1 -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') license=('LGPL' 'GPL') makedepends=('pkgconfig' 'gstreamer0.10-base>=0.10.30' 'xvidcore' 'libdca' 'bzip2' 'libdc1394' 'exempi' 'jack' 'neon' 'libexif' 'musicbrainz' 'faad2' 'libmms' 'libcdaudio' 'libmpcdec' 'mjpegtools' 'libdvdnav' 'libmodplug' 'jasper' 'liblrdf' 'libofa' 'soundtouch' 'libvdpau' 'schroedinger' 'libass' 'libvpx' 'gsm' 'libgme' 'rtmpdump') url="http://gstreamer.freedesktop.org/" diff --git a/libre/initscripts/PKGBUILD b/libre/initscripts/PKGBUILD index 0d7c0b367..fb29c76fe 100644 --- a/libre/initscripts/PKGBUILD +++ b/libre/initscripts/PKGBUILD @@ -8,7 +8,7 @@ pkgname=initscripts pkgver=2011.04.1 pkgrel=1.1 pkgdesc="System initialization/bootup scripts (Parabola branding)" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://parabolagnulinux.org" license=('GPL2') groups=('base') diff --git a/libre/kernel26-libre-lts/PKGBUILD b/libre/kernel26-libre-lts/PKGBUILD index 55cde1f43..ce48f4625 100644 --- a/libre/kernel26-libre-lts/PKGBUILD +++ b/libre/kernel26-libre-lts/PKGBUILD @@ -9,7 +9,7 @@ _basekernel=2.6.32 _preset=kernel26-lts.preset pkgver=${_basekernel}.39 pkgrel=1 -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') license=('GPL2') url="http://linux-libre.fsfla.org" source=(http://www.fsfla.org/svnwiki/selibre/linux-libre/download/releases/${pkgver}-libre2/linux-${pkgver}-libre2.tar.bz2 diff --git a/libre/kernel26-libre/Kbuild b/libre/kernel26-libre/Kbuild new file mode 100644 index 000000000..8a9d7dceb --- /dev/null +++ b/libre/kernel26-libre/Kbuild @@ -0,0 +1,19 @@ +# Fail on warnings - also for files referenced in subdirs +# -Werror can be disabled for specific files using: +# CFLAGS_<file.o> := -Wno-error +subdir-ccflags-y := -Wno-error + +# platform specific definitions +include arch/mips/Kbuild.platforms +obj-y := $(platform-y) + +# make clean traverses $(obj-) without having included .config, so +# everything ends up here +obj- := $(platform-) + +# mips object files +# The object files are linked as core-y files would be linked + +obj-y += kernel/ +obj-y += mm/ +obj-y += math-emu/ diff --git a/libre/kernel26-libre/Kbuild.platforms b/libre/kernel26-libre/Kbuild.platforms new file mode 100644 index 000000000..90a226888 --- /dev/null +++ b/libre/kernel26-libre/Kbuild.platforms @@ -0,0 +1,6 @@ +# All platforms listed in alphabetic order + +platforms += loongson + +# include the platform specific files +include $(patsubst %, $(srctree)/arch/mips/%/Platform, $(platforms)) diff --git a/libre/kernel26-libre/PKGBUILD b/libre/kernel26-libre/PKGBUILD index d891a2c46..673a464a1 100644 --- a/libre/kernel26-libre/PKGBUILD +++ b/libre/kernel26-libre/PKGBUILD @@ -10,25 +10,42 @@ pkgver=${_basekernel}.5 pkgrel=1 makedepends=('xmlto' 'docbook-xsl') _patchname="patch-${pkgver}-${pkgrel}-LIBRE" -arch=(i686 x86_64) +arch=(i686 x86_64 mips64el) license=('GPL2') url="http://linux-libre.fsfla.org/" options=(!strip) source=(http://linux-libre.fsfla.org/pub/linux-libre/releases/${pkgver}-libre/linux-${pkgver}-libre.tar.bz2 + http://linux-libre.fsfla.org/pub/linux-libre/lemote/gnewsense/pool/linux-patches-${pkgver}-libre-lemote_0lxo_mipsel.tar.bz2 http://repo.parabolagnulinux.org/other/kernel26/${_patchname}.bz2 # the main kernel config files config.i686 config.x86_64 # standard config files for mkinitcpio ramdisk kernel26.preset - kernel26.install) + kernel26.install + Kbuild + Kbuild.platforms) build() { cd ${srcdir}/linux-$pkgver # Add -LIBRE patches # See http://projects.parabolagnulinux.org/linux-libre-2.6-LIBRE.git/ - patch -Np1 -i ${srcdir}/${_patchname} || return 1 + patch -Np1 -i ${srcdir}/${_patchname} + sed -i "s|^EXTRAVERSION.*|EXTRAVERSION = .${pkgver##*.}-libre|" Makefile - cat $srcdir/config.$CARCH > ./.config # simpler + if [ "$CARCH" == "mips64el" ]; then + msg2 "Adding loongson-community patches" + patch -Np1 -i ${srcdir}/$pkgver-*-loongson-community.patch + patch -Np0 -i ${srcdir}/lxo-config.patch + +# ensure N32 + sed -i "s|CONFIG_MIPS32_O32=.*|# CONFIG_MIPS32_O32 is not set|g" ./.config + sed -i "s|CONFIG_MIPS32_N32=.*|CONFIG_MIPS32_N32=y|g" ./.config + +# build with -Wno-error + cp --remove-destination ${srcdir}/Kbuild arch/mips/ + else + cat $srcdir/config.$CARCH > ./.config # simpler + fi for this_doesnt_build in CONFIG_WLAGS49_H2 CONFIG_WLAGS49_H25; do sed -i "s|^${this_doesnt_build}=.*|# ${this_doesnt_build} is not set|g" ./.config @@ -58,7 +75,11 @@ build() { #################### yes "" | make config # build! - make ${MAKEFLAGS} bzImage modules + if [ "$CARCH" == "mips64el" ]; then + make ${MAKEFLAGS} vmlinuz modules + else + make ${MAKEFLAGS} bzImage modules + fi } package_kernel26-libre() { @@ -80,13 +101,20 @@ package_kernel26-libre() { optdepends=('crda: to set the correct wireless channels of your country') KARCH=x86 + [[ $CARCH = "mips64el" ]] && KARCH=mips cd ${srcdir}/linux-$pkgver # get kernel version _kernver="$(make kernelrelease)" mkdir -p ${pkgdir}/{lib/modules,lib/firmware,boot} make INSTALL_MOD_PATH=${pkgdir} modules_install cp System.map ${pkgdir}/boot/System.map26${_kernelname} - cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz26${_kernelname} + + if [ "$CARCH" == "mips64el" ]; then + cp vmlinuz ${pkgdir}/boot/vmlinuz26${_kernelname} + else + cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz26${_kernelname} + install -m644 -D vmlinux.32 ${pkgdir}/usr/src/linux-${_kernver}/vmlinux32 + fi # # add vmlinux install -m644 -D vmlinux ${pkgdir}/usr/src/linux-${_kernver}/vmlinux @@ -118,6 +146,9 @@ package_kernel26-libre-headers() { replaces=('kernel26-headers') conflicts=('kernel26-headers') KARCH=x86 + [[ $CARCH = "mips64el" ]] && KARCH=mips + cd ${srcdir}/linux-$pkgver + _kernver="$(make kernelrelease)" mkdir -p ${pkgdir}/lib/modules/${_kernver} cd ${pkgdir}/lib/modules/${_kernver} ln -sf ../../../usr/src/linux-${_kernver} build @@ -136,8 +167,13 @@ package_kernel26-libre-headers() { done # copy arch includes for external modules - mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/x86 - cp -a arch/x86/include ${pkgdir}/usr/src/linux-${_kernver}/arch/x86/ + mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH + cp -a arch/$KARCH/include ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/ + if [ "$CARCH" = "mips64el" ]; then + cp -a arch/$KARCH/Kbuild ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/ + cp -a arch/$KARCH/loongson ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/ + cp -a $srcdir/Kbuild.platforms ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/ + fi # copy files necessary for later builds, like nvidia and vmware cp Module.symvers ${pkgdir}/usr/src/linux-${_kernver} @@ -161,8 +197,10 @@ package_kernel26-libre-headers() { mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i cp -a drivers/media/video/$i/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i done - mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/staging/usbvideo/ - cp -a drivers/staging/usbvideo/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/staging/usbvideo/ + if [ "$CARCH" != "mips64el" ]; then + mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/staging/usbvideo/ + cp -a drivers/staging/usbvideo/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/staging/usbvideo/ + fi # add docbook makefile install -D -m644 Documentation/DocBook/Makefile \ ${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile @@ -183,8 +221,10 @@ package_kernel26-libre-headers() { # add dvb headers for external modules # in reference to: # http://bugs.archlinux.org/task/11194 - mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/ - cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/ + if [ "$CARCH" != "mips64el" ]; then + mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/ + cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/ + fi # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new # in reference to: # http://bugs.archlinux.org/task/13146 @@ -224,7 +264,12 @@ package_kernel26-libre-headers() { esac done # remove unneeded architectures - rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa} + rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa} + if [ "$CARCH" = "mips64el" ]; then + rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/x86 + else + rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/mips + fi } package_kernel26-libre-docs() { @@ -241,9 +286,3 @@ find $pkgdir -type d -exec chmod 755 {} \; # remove a file already in kernel26 package rm -f $pkgdir/usr/src/linux-$_kernver/Documentation/DocBook/Makefile } -md5sums=('53f12d40086282b858531e583fa02107' - '3753b5f0b812bd548aca6abafb0e6520' - 'a6b673aead69b12f50b8ca53d1f14b14' - 'fa7d6abea1e2163b1ab2b1acfe117f51' - '25584700a0a679542929c4bed31433b6' - '2d68b4cf4caedd1f0188f4877eca1d43') diff --git a/libre/mplayer-libre/PKGBUILD b/libre/mplayer-libre/PKGBUILD index 238fa973b..7e99341f0 100644 --- a/libre/mplayer-libre/PKGBUILD +++ b/libre/mplayer-libre/PKGBUILD @@ -7,7 +7,7 @@ pkgname=mplayer-libre pkgver=33159 pkgrel=1 pkgdesc="A movie player for linux. Libre version without faac." -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') depends=('libxxf86dga' 'libxxf86vm' 'libmad' 'cdparanoia' 'libxinerama' 'sdl' 'lame' 'libtheora' 'xvidcore' 'libmng' 'libxss' 'libgl' 'smbclient' 'aalib' 'jack' 'libcaca' 'x264' 'lirc-utils' 'ttf-dejavu' 'libxvmc' 'enca' 'libvdpau' 'opencore-amr' 'libdca' 'a52dec' 'schroedinger' 'libvpx' 'libpulse' 'speex' 'fribidi' 'desktop-file-utils') diff --git a/libre/mplayer-vaapi-libre/PKGBUILD b/libre/mplayer-vaapi-libre/PKGBUILD index 22517928e..1cab3e716 100644 --- a/libre/mplayer-vaapi-libre/PKGBUILD +++ b/libre/mplayer-vaapi-libre/PKGBUILD @@ -9,7 +9,7 @@ pkgver=33025 _vaapi_version=20110127 pkgrel=3 pkgdesc="A movie player, compiled with vaapi support, without faac dependency, added speex support" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://www.splitted-desktop.com/~gbeauchesne/mplayer-vaapi/" license=('GPL') depends=('libxxf86dga' 'libxxf86vm' 'libmad' 'cdparanoia' 'libxinerama' 'sdl' diff --git a/libre/p7zip-libre/PKGBUILD b/libre/p7zip-libre/PKGBUILD index cbee2b234..2185b7789 100644 --- a/libre/p7zip-libre/PKGBUILD +++ b/libre/p7zip-libre/PKGBUILD @@ -10,7 +10,7 @@ _pkgname=${pkgname%-libre} pkgver=9.20 pkgrel=1 pkgdesc='Command-line version of the 7zip compressed file archiver without Rar' -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') license=('GPL') url='http://p7zip.sourceforge.net/' makedepends=('yasm' 'nasm') diff --git a/libre/psutils-libre/PKGBUILD b/libre/psutils-libre/PKGBUILD index 6ed3b7f60..a2ee853d1 100644 --- a/libre/psutils-libre/PKGBUILD +++ b/libre/psutils-libre/PKGBUILD @@ -6,7 +6,7 @@ pkgname=psutils-libre pkgver=1.17 pkgrel=1 pkgdesc="A set of postscript utilities" -arch=(i686 x86_64) +arch=(i686 x86_64 'mips64el') license=('custom') depends=('glibc' 'ghostscript') provides=('psutils-lprng' 'psutils') diff --git a/libre/python-reportlab-libre/PKGBUILD b/libre/python-reportlab-libre/PKGBUILD index e0dfc9d9c..41e2a4d00 100644 --- a/libre/python-reportlab-libre/PKGBUILD +++ b/libre/python-reportlab-libre/PKGBUILD @@ -9,7 +9,7 @@ _origname=reportlab pkgver=2.5 pkgrel=1 pkgdesc="A proven industry-strength PDF generating solution" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') depends=('python2' 'freetype2' 'ttf-bitstream-vera' 'gsfonts' 'python-imaging') license=('custom') source=(http://www.reportlab.org/ftp/${_origname}-$pkgver.tar.gz diff --git a/libre/seamonkey-libre/PKGBUILD b/libre/seamonkey-libre/PKGBUILD index 343f3e3ed..21fc89d96 100644 --- a/libre/seamonkey-libre/PKGBUILD +++ b/libre/seamonkey-libre/PKGBUILD @@ -4,7 +4,7 @@ pkgname=seamonkey-libre pkgver=2.0.12 pkgrel=1 pkgdesc="SeaMonkey internet suite, with GNUZilla addons" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') license=('MPL') depends=('gtk2' 'mozilla-common' 'nss' 'libxt' 'gcc-libs' 'alsa-lib' 'dbus-glib') makedepends=('zip' 'pkg-config' 'libgnomeui>=2.24.2' 'python2' 'libidl2' 'autoconf2.13') diff --git a/libre/sqlite3/PKGBUILD b/libre/sqlite3/PKGBUILD index 1cb3fc229..767488b55 100644 --- a/libre/sqlite3/PKGBUILD +++ b/libre/sqlite3/PKGBUILD @@ -13,7 +13,7 @@ _amalgamationver2=${_amalgamationver/00/} pkgver=${_amalgamationver2//0/.} pkgrel=1 pkgdesc="A C library that implements an SQL database engine" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') license=('custom') url="http://www.sqlite.org/" makedepends=('tcl' 'readline>=6.0.00') diff --git a/libre/thunderbird-libre/PKGBUILD b/libre/thunderbird-libre/PKGBUILD index d5f546e3d..8256c3c44 100644 --- a/libre/thunderbird-libre/PKGBUILD +++ b/libre/thunderbird-libre/PKGBUILD @@ -6,7 +6,7 @@ pkgname=thunderbird-libre pkgver=3.1.9 pkgrel=1 pkgdesc="Standalone Mail/News reader, with GNUZilla addons" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') license=('MPL' 'GPL') url="http://www.mozilla.org/projects/thunderbird" depends=('gtk2' 'gcc-libs' 'mozilla-common' 'nss' 'libxt' 'shared-mime-info' 'alsa-lib' 'dbus-glib' 'hunspell' 'sqlite3>=3.7.4' 'desktop-file-utils') diff --git a/libre/unrar-libre/PKGBUILD b/libre/unrar-libre/PKGBUILD index e08e90220..0096718b4 100644 --- a/libre/unrar-libre/PKGBUILD +++ b/libre/unrar-libre/PKGBUILD @@ -4,7 +4,7 @@ pkgname=unrar-libre pkgver=0.0.1 pkgrel=1 pkgdesc="A free software library to decompress .rar files." -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://gna.org/projects/unrar/" license=('GPL') provides=(unrar) diff --git a/libre/xchat-gnome-libre/PKGBUILD b/libre/xchat-gnome-libre/PKGBUILD new file mode 100644 index 000000000..94c6b5c40 --- /dev/null +++ b/libre/xchat-gnome-libre/PKGBUILD @@ -0,0 +1,50 @@ +# $Id: PKGBUILD 112861 2011-03-07 10:29:01Z eric $ +# Maintainer: Allan McRae <allan@archlinux.org> +# Contributor: Jan de Groot <jgc@archlinux.org> + +pkgname=xchat-gnome +pkgver=0.26.1 +pkgrel=5 +pkgdesc="GNOME frontend to the popular X-Chat IRC client." +arch=('i686' 'x86_64' 'mips64el') +license=('GPL') +url="http://xchat-gnome.navi.cx/" +depends=('libgnomeui>=2.18.1-2' 'libsexy>=0.1.11' 'gconf>=2.18.0.1-4' + 'hicolor-icon-theme' 'desktop-file-utils' 'libcanberra' 'libsm') +makedepends=('gettext' 'perlxml' 'python2' 'tcl' 'libnotify' 'gnome-doc-utils>=0.10.3' + 'intltool' 'pkg-config') +optdepends=('libnotify: notifications' + 'python2: plugin' + 'tcl: plugin') +options=('!libtool') +install=xchat-gnome.install +source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/0.26/${pkgname}-${pkgver}.tar.gz + gtk2-2.20.patch xchat-gnome-0.26.1-deprecated-symbol.patch) +md5sums=('e355d71d76cd97a0764e37bfacf09101' 'dafc2536a0c5ee3f8015af81fce69656'\ + 'f82417277f0b5e83334147c4bf63d531') +sha1sums=('303bfbf2f1bda83fbc4edab148df4764cb4b8998' 'f1bfc5af50be7c10a9db96be20185325636d8da9'\ + '9aa0abc4b7999e09cafdeb8da1ad4641552a421b') + +build() { + cd "$srcdir/${pkgname}-${pkgver}" + patch -Np1 -i "$srcdir/gtk2-2.20.patch" + patch -Np1 -i "$srcdir/xchat-gnome-0.26.1-deprecated-symbol.patch" + sed -i 's/notify_notification_new (summary, escaped, NULL, NULL);/notify_notification_new (summary, escaped, NULL);/' plugins/notify-osd/notify-osd.c + sed -i -e "s/ /\t/" src/common/dbus/Makefile.in + + ./configure --prefix=/usr --sysconfdir=/etc \ + --localstatedir=/var --disable-static \ + --enable-ipv6 --enable-shm \ + --disable-gtkfe --disable-scrollkeeper + make +} + +package() { + cd "$srcdir/${pkgname}-${pkgver}" + make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install + + install -d "$pkgdir/usr/share/gconf/schemas" + gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/${pkgname}.schemas" \ + "$pkgdir"/etc/gconf/schemas/*.schemas + rm -f "$pkgdir"/etc/gconf/schemas/*.schemas +} diff --git a/libre/xchat-gnome-libre/gtk2-2.20.patch b/libre/xchat-gnome-libre/gtk2-2.20.patch new file mode 100644 index 000000000..7a5dcedf2 --- /dev/null +++ b/libre/xchat-gnome-libre/gtk2-2.20.patch @@ -0,0 +1,137 @@ +diff -urp xchat-gnome-0.26.1.OLD/src/fe-gnome/fe-gnome.c xchat-gnome-0.26.1/src/fe-gnome/fe-gnome.c +--- xchat-gnome-0.26.1.OLD/src/fe-gnome/fe-gnome.c 2008-09-07 09:18:45.000000000 -0400 ++++ xchat-gnome-0.26.1/src/fe-gnome/fe-gnome.c 2010-03-28 16:16:52.181405173 -0400 +@@ -753,7 +753,7 @@ fe_gui_info (session * sess, int info_ty + { + switch (info_type) { + case 0: +- if (!GTK_WIDGET_VISIBLE (GTK_WINDOW (gui.main_window))) { ++ if (!gtk_widget_get_visible (GTK_WIDGET (gui.main_window))) { + return 2; + } + if (gtk_window_is_active (GTK_WINDOW (gui.main_window))) { +diff -urp xchat-gnome-0.26.1.OLD/src/fe-gnome/find-bar.c xchat-gnome-0.26.1/src/fe-gnome/find-bar.c +--- xchat-gnome-0.26.1.OLD/src/fe-gnome/find-bar.c 2007-03-09 10:42:57.000000000 -0500 ++++ xchat-gnome-0.26.1/src/fe-gnome/find-bar.c 2010-03-28 16:26:24.300405158 -0400 +@@ -247,7 +247,7 @@ find_bar_close (FindBar *bar) + { + gint position; + +- if (!GTK_WIDGET_VISIBLE (bar)) { ++ if (!gtk_widget_get_visible (GTK_WIDGET (bar))) { + return; + } + +diff -urp xchat-gnome-0.26.1.OLD/src/fe-gnome/text-entry.c xchat-gnome-0.26.1/src/fe-gnome/text-entry.c +--- xchat-gnome-0.26.1.OLD/src/fe-gnome/text-entry.c 2008-09-07 10:02:45.000000000 -0400 ++++ xchat-gnome-0.26.1/src/fe-gnome/text-entry.c 2010-03-28 16:39:48.755153605 -0400 +@@ -667,7 +667,7 @@ text_entry_set_current (TextEntry *entry + char *selection = NULL, *text = NULL; + int start, end; + +- g_return_if_fail (GTK_WIDGET_REALIZED (widget)); ++ g_return_if_fail (gtk_widget_get_realized (GTK_WIDGET (widget))); + + if (sess == priv->current) { + return; +diff -urp xchat-gnome-0.26.1.OLD/src/fe-gnome/userlist-gui.c xchat-gnome-0.26.1/src/fe-gnome/userlist-gui.c +--- xchat-gnome-0.26.1.OLD/src/fe-gnome/userlist-gui.c 2008-10-13 17:02:16.000000000 -0400 ++++ xchat-gnome-0.26.1/src/fe-gnome/userlist-gui.c 2010-03-28 16:47:55.703154452 -0400 +@@ -261,12 +261,12 @@ userlist_gui_show (void) + + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (gui.userlist_toggle), TRUE); + +- if (!GTK_WIDGET_REALIZED (gui.userlist_window)) { ++ if (!gtk_widget_get_realized (GTK_WIDGET (gui.userlist_window))) { + gtk_widget_realize (gui.userlist_window); + } + gtk_widget_size_request (gui.userlist, &request); + +- if (GTK_WIDGET_REALIZED (gui.userlist_toggle)) ++ if (gtk_widget_get_realized (GTK_WIDGET (gui.userlist_toggle))) + anchor_widget = gui.userlist_toggle; + else + anchor_widget = gui.main_window; +diff -urp xchat-gnome-0.26.1.OLD/src/fe-gnome/xtext.c xchat-gnome-0.26.1/src/fe-gnome/xtext.c +--- xchat-gnome-0.26.1.OLD/src/fe-gnome/xtext.c 2009-01-16 08:17:31.000000000 -0500 ++++ xchat-gnome-0.26.1/src/fe-gnome/xtext.c 2010-03-28 16:57:17.441402617 -0400 +@@ -1086,7 +1086,7 @@ gtk_xtext_size_allocate (GtkWidget * wid + xtext->avoid_trans = FALSE; + + widget->allocation = *allocation; +- if (GTK_WIDGET_REALIZED (widget)) ++ if (gtk_widget_get_realized (GTK_WIDGET (widget))) + { + xtext->buffer->window_width = allocation->width; + xtext->buffer->window_height = allocation->height; +@@ -4113,7 +4113,7 @@ gtk_xtext_set_palette (GtkXText * xtext, + xtext->palette[i] = palette[i].pixel; + } + +- if (GTK_WIDGET_REALIZED (xtext)) ++ if (gtk_widget_get_realized (GTK_WIDGET (xtext))) + { + xtext_set_fg (xtext, xtext->fgc, XTEXT_FG); + xtext_set_bg (xtext, xtext->fgc, XTEXT_BG); +@@ -4211,7 +4211,7 @@ gtk_xtext_set_font (GtkXText *xtext, cha + + gtk_xtext_fix_indent (xtext->buffer); + +- if (GTK_WIDGET_REALIZED (xtext)) ++ if (gtk_widget_get_realized (GTK_WIDGET (xtext))) + gtk_xtext_recalc_widths (xtext->buffer, TRUE); + + return TRUE; +@@ -4248,7 +4248,7 @@ gtk_xtext_set_background (GtkXText * xte + if (trans) + { + xtext->shaded = shaded; +- if (GTK_WIDGET_REALIZED (xtext)) ++ if (gtk_widget_get_realized (GTK_WIDGET (xtext))) + gtk_xtext_load_trans (xtext); + return; + } +@@ -4260,14 +4260,14 @@ gtk_xtext_set_background (GtkXText * xte + if (pixmap != 0) + { + g_object_ref (pixmap); +- if (GTK_WIDGET_REALIZED (xtext)) ++ if (gtk_widget_get_realized (GTK_WIDGET (xtext))) + { + gdk_gc_set_tile (xtext->bgc, pixmap); + gdk_gc_set_ts_origin (xtext->bgc, 0, 0); + xtext->ts_x = xtext->ts_y = 0; + gdk_gc_set_fill (xtext->bgc, GDK_TILED); + } +- } else if (GTK_WIDGET_REALIZED (xtext)) ++ } else if (gtk_widget_get_realized (GTK_WIDGET (xtext))) + { + g_object_unref (xtext->bgc); + val.subwindow_mode = GDK_INCLUDE_INFERIORS; +@@ -4516,7 +4516,7 @@ gtk_xtext_render_page (GtkXText * xtext) + int subline; + int startline = xtext->adj->value; + +- if(!GTK_WIDGET_REALIZED(xtext)) ++ if(!gtk_widget_get_realized (GTK_WIDGET (xtext))) + return; + + if (xtext->buffer->indent < MARGIN) +@@ -4636,7 +4636,7 @@ gtk_xtext_render_page (GtkXText * xtext) + void + gtk_xtext_refresh (GtkXText * xtext, int do_trans) + { +- if (GTK_WIDGET_REALIZED (GTK_WIDGET (xtext))) ++ if (gtk_widget_get_realized (GTK_WIDGET (xtext))) + { + #if defined(USE_XLIB) || defined(WIN32) + if (xtext->transparent && do_trans) +@@ -5204,7 +5204,7 @@ gtk_xtext_buffer_show (GtkXText *xtext, + xtext->io_tag = 0; + } + +- if (!GTK_WIDGET_REALIZED (GTK_WIDGET (xtext))) ++ if (!gtk_widget_get_realized (GTK_WIDGET (xtext))) + gtk_widget_realize (GTK_WIDGET (xtext)); + + gdk_drawable_get_size (GTK_WIDGET (xtext)->window, &w, &h); diff --git a/libre/xchat-gnome-libre/xchat-gnome-0.26.1-deprecated-symbol.patch b/libre/xchat-gnome-libre/xchat-gnome-0.26.1-deprecated-symbol.patch new file mode 100644 index 000000000..5bf1e4ef5 --- /dev/null +++ b/libre/xchat-gnome-libre/xchat-gnome-0.26.1-deprecated-symbol.patch @@ -0,0 +1,22 @@ +From 8d35b36baa8204b68c9520ec92327e34c1d7c580 Mon Sep 17 00:00:00 2001 +From: Ritesh Khadgaray <khadgaray@gmail.com> +Date: Sun, 04 Jul 2010 09:52:07 +0000 +Subject: remove deprecated GTK+ symbols, GTK_WIDGET_SET_FLAGS. + +--- +diff --git a/src/fe-gnome/xtext.c b/src/fe-gnome/xtext.c +index 92562a3..51503f8 100644 +--- a/src/fe-gnome/xtext.c ++++ b/src/fe-gnome/xtext.c +@@ -963,7 +963,7 @@ gtk_xtext_realize (GtkWidget * widget) + GdkColor col; + GdkColormap *cmap; + +- GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED); ++ gtk_widget_set_realized (widget, TRUE); + xtext = GTK_XTEXT (widget); + + attributes.x = widget->allocation.x; +-- +cgit v0.8.3.1 + diff --git a/libre/xchat-gnome-libre/xchat-gnome.install b/libre/xchat-gnome-libre/xchat-gnome.install new file mode 100644 index 000000000..b0816ece3 --- /dev/null +++ b/libre/xchat-gnome-libre/xchat-gnome.install @@ -0,0 +1,24 @@ +pkgname=xchat-gnome + +post_install() { + usr/sbin/gconfpkg --install ${pkgname} + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + usr/sbin/gconfpkg --uninstall ${pkgname} +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q +} diff --git a/libre/xchat-libre/PKGBUILD b/libre/xchat-libre/PKGBUILD index 8262e03be..feb281f8d 100644 --- a/libre/xchat-libre/PKGBUILD +++ b/libre/xchat-libre/PKGBUILD @@ -6,7 +6,7 @@ pkgname=xchat-libre pkgver=2.8.8 pkgrel=3 pkgdesc="A GTK+ based IRC client without non-free browser reference" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://www.xchat.org/" provides=("xchat=$pkgver") replaces=('xchat') |