Bon voilà je pense que ça marche, j'ai fait ce que sous entendait FoolEcho, c'est à dire deux patchs avec modif du pkgbuild pour patcher les autogen.sh pour que ça fonctionne avec
automake-1.11.
À faire l'un après l'autre dans le bon ordre
libfm-fixes-git
PKGBUILD
Code : Tout sélectionner
#Maintainer : Vadim Ushakov <igeekless [at] gmail [dot] com>
pkgname=libfm-fixes-git
pkgver=20120626
pkgrel=1
url="https://github.com/geekless/libfm"
pkgdesc="the core of next generation file manager PCManFM"
arch=('i686' 'x86_64')
license=('GPL')
depends=('udisks' 'gtk2' 'glib2' 'vala' 'menu-cache')
optdepends=('gvfs: To access remote file systems.'
'ffmpegthumbnailer: video thumbnails'
'pdftoppm: pdf thumbnails'
'convert: epub thumbnails'
'unzip: epub thumbnails')
makedepends=('git' 'intltool' 'pkgconfig' 'autoconf' 'perl' 'gtk-doc')
provides=('libfm' )
conflicts=('libfm' 'libfm-git' 'libfm_with_external_thumbnailers')
source=(automake-1.11.patch)
md5sums=('a0ca10abb594d84003f8e1d6b58ad642')
_gitroot="git://github.com/geekless/libfm"
_gitname="${pkgname%-git}"
build() {
msg "Connecting to GIT server...."
cd "${srcdir}"
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot $_gitname
fi
[ -d "$srcdir/${_gitname}-build" ] && rm -rf "$srcdir/${_gitname}-build"
git clone "$srcdir/${_gitname}" "$srcdir/${_gitname}-build"
msg "GIT checkout done or server timeout"
msg "Start to build..."
cd "$srcdir/${_gitname}-build"
patch autogen.sh < ../../automake-1.11.patch
sh ./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc --enable-udisks --with-gnu-ld || return 1
# strange: twice make is needed only for makepkg; compiling manually is fine
make || make
}
package ()
{
cd "$srcdir/${_gitname}-build"
make DESTDIR="$pkgdir/" install
#mv $pkgdir/usr/bin/{libfm-demo,libfm}
#install -Dm644 $srcdir/${_gitname}.png $pkgdir/usr/share/pixmaps/${_gitname}.png
#install -Dm755 $srcdir/${_gitname}.desktop $pkgdir/usr/share/applications/${_gitname}.desktop
}
automake-1.11.patch
Code : Tout sélectionner
--- src/libfm-fixes/autogen.sh 2012-06-26 14:29:35.029545258 +0200
+++ src/libfm-fixes-build/autogen.sh 2012-06-26 14:30:24.179543340 +0200
@@ -1,7 +1,7 @@
#! /bin/sh
AC_VERSION=
-AUTOMAKE=${AUTOMAKE:-automake}
+AUTOMAKE=${AUTOMAKE:-automake-1.11}
AM_INSTALLED_VERSION=$($AUTOMAKE --version | sed -e '2,$ d' -e 's/.* \([0-9]*\.[0-9]*\).*/\1/')
if [ "$AM_INSTALLED_VERSION" != "1.10" \
@@ -32,7 +32,7 @@
set -x
-${ACLOCAL:-aclocal$AM_VERSION} ${ACLOCAL_ARG}
+${ACLOCAL:-aclocal-1.11} ${ACLOCAL_ARG}
${AUTOHEADER:-autoheader$AC_VERSION} --force
AUTOMAKE=$AUTOMAKE libtoolize -c --automake --force
AUTOMAKE=$AUTOMAKE intltoolize -c --automake --force
pcmanfm-fixes-git
PKGBUILD
Code : Tout sélectionner
#Maintainer : Vadim Ushakov <igeekless [at] gmail [dot] com>
pkgname=pcmanfm-fixes-git
pkgver=20120626
pkgrel=1
pkgdesc="An extremely fast, lightweight, yet feature-rich file manager with tabbed browsing"
arch=('i686' 'x86_64')
url="https://github.com/geekless/pcmanfm"
license=('GPL')
depends=('libfm-fixes-git')
makedepends=('git' 'intltool' 'pkg-config')
optdepends=('gvfs: mounting of local and remote drives'
'gnome-menus: applications menu and "Open with..." dialog')
provides=('pcmanfm')
conflicts=('pcmanfm' 'pcmanfm-git' 'pcmanfm_with_search')
install=pcmanfm.install
source=('automake-1.11.patch')
md5sums=('5ce2ceefd469641b9fd9d49084552657')
_gitroot=git://github.com/geekless/pcmanfm
_gitname=pcmanfm
build() {
cd "$srcdir"
msg "Connecting to $_gitroot..."
if [[ -d $_gitname ]]; then
cd $_gitname && git pull origin && cd ..
msg2 "Local files updated"
else
git clone $_gitroot $_gitname
msg2 "Git checkout done"
fi
rm -rf $_gitname-build
git clone $_gitname $_gitname-build
cd $_gitname-build
patch autogen.sh < ../../automake-1.11.patch
msg "Starting make..."
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc
make
}
package() {
cd "$srcdir/$_gitname-build"
make DESTDIR="$pkgdir" install
}
automake-1.11.patch
Code : Tout sélectionner
--- ../pcmanfm/autogen.sh 2012-06-26 14:42:53.729514149 +0200
+++ autogen.sh 2012-06-26 14:43:48.809512005 +0200
@@ -1,9 +1,10 @@
#! /bin/sh
AC_VERSION=
-AUTOMAKE=${AUTOMAKE:-automake}
+AUTOMAKE=${AUTOMAKE:-automake-1.11}
AM_INSTALLED_VERSION=$($AUTOMAKE --version | sed -e '2,$ d' -e 's/.* \([0-9]*\.[0-9]*\).*/\1/')
+
if [ "$AM_INSTALLED_VERSION" != "1.10" \
-a "$AM_INSTALLED_VERSION" != "1.11" ];then
echo
@@ -19,7 +20,7 @@
ACLOCAL_ARG=-I ${ACLOCAL_DIR}
fi
-${ACLOCAL:-aclocal$AM_VERSION} ${ACLOCAL_ARG}
+${ACLOCAL:-aclocal-1.11} ${ACLOCAL_ARG}
${AUTOHEADER:-autoheader$AC_VERSION} --force
AUTOMAKE=$AUTOMAKE libtoolize -c --automake --force
AUTOMAKE=$AUTOMAKE intltoolize -c --automake --force
Remarque : on peut se passer de patch avec sed par exemple (je viens d'y penser à l'instant) donc à voir si c'est pas mieux. On pourrait faire un test avec which et modifier en consèquences

Bon je ferais un edit quand j'aurais fini.
Edit : je ne sais pas ce qui est le mieux donc voilà la version avec sed donc sans patch :
libfm-fixes-git
PKGBUILD
Code : Tout sélectionner
#Maintainer : Vadim Ushakov <igeekless [at] gmail [dot] com>
pkgname=libfm-fixes-git
pkgver=20120626
pkgrel=1
url="https://github.com/geekless/libfm"
pkgdesc="the core of next generation file manager PCManFM"
arch=('i686' 'x86_64')
license=('GPL')
depends=('udisks' 'gtk2' 'glib2' 'vala' 'menu-cache')
optdepends=('gvfs: To access remote file systems.'
'ffmpegthumbnailer: video thumbnails'
'pdftoppm: pdf thumbnails'
'convert: epub thumbnails'
'unzip: epub thumbnails')
makedepends=('git' 'intltool' 'pkgconfig' 'autoconf' 'perl' 'gtk-doc')
provides=('libfm' )
conflicts=('libfm' 'libfm-git' 'libfm_with_external_thumbnailers')
_gitroot="git://github.com/geekless/libfm"
_gitname="${pkgname%-git}"
build() {
msg "Connecting to GIT server...."
cd "${srcdir}"
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot $_gitname
fi
[ -d "$srcdir/${_gitname}-build" ] && rm -rf "$srcdir/${_gitname}-build"
git clone "$srcdir/${_gitname}" "$srcdir/${_gitname}-build"
msg "GIT checkout done or server timeout"
msg "Start to build..."
cd "$srcdir/${_gitname}-build"
# look for automake
# test if automake-1.11 is present
path=$(which automake-1.11)
if !(($?)); then
sed -i 's/-automake\}/-automake-1\.11\}/; s/-aclocal\$AM_VERSION/-aclocal-1\.11/' autogen.sh
else
# test if automake-1.10 is present
path=$(which automake-1.10)
if !(($?)); then
sed -i 's/-automake}/-automake-1.10/; s/-aclocal\$AM_VERSION/-aclocal-1.10/' autogen.sh
fi
fi
sh ./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc --enable-udisks --with-gnu-ld || return 1
# strange: twice make is needed only for makepkg; compiling manually is fine
make || make
}
package ()
{
cd "$srcdir/${_gitname}-build"
make DESTDIR="$pkgdir/" install
#mv $pkgdir/usr/bin/{libfm-demo,libfm}
#install -Dm644 $srcdir/${_gitname}.png $pkgdir/usr/share/pixmaps/${_gitname}.png
#install -Dm755 $srcdir/${_gitname}.desktop $pkgdir/usr/share/applications/${_gitname}.desktop
}
pcmanfm-fixes-git
PKGBUILD
Code : Tout sélectionner
#Maintainer : Vadim Ushakov <igeekless [at] gmail [dot] com>
pkgname=pcmanfm-fixes-git
pkgver=20120626
pkgrel=1
pkgdesc="An extremely fast, lightweight, yet feature-rich file manager with tabbed browsing"
arch=('i686' 'x86_64')
url="https://github.com/geekless/pcmanfm"
license=('GPL')
depends=('libfm-fixes-git')
makedepends=('git' 'intltool' 'pkg-config')
optdepends=('gvfs: mounting of local and remote drives'
'gnome-menus: applications menu and "Open with..." dialog')
provides=('pcmanfm')
conflicts=('pcmanfm' 'pcmanfm-git' 'pcmanfm_with_search')
install=pcmanfm.install
_gitroot=git://github.com/geekless/pcmanfm
_gitname=pcmanfm
build() {
cd "$srcdir"
msg "Connecting to $_gitroot..."
if [[ -d $_gitname ]]; then
cd $_gitname && git pull origin && cd ..
msg2 "Local files updated"
else
git clone $_gitroot $_gitname
msg2 "Git checkout done"
fi
rm -rf $_gitname-build
git clone $_gitname $_gitname-build
cd $_gitname-build
# look for automake
# test if automake-1.11 is present
path=$(which automake-1.11)
if !(($?)); then
sed -i 's/-automake\}/-automake-1\.11\}/; s/-aclocal\$AM_VERSION/-aclocal-1\.11/' autogen.sh
else
# test if automake-1.10 is present
path=$(which automake-1.10)
if !(($?)); then
sed -i 's/-automake}/-automake-1.10/; s/-aclocal\$AM_VERSION/-aclocal-1.10/' autogen.sh
fi
fi
msg "Starting make..."
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc
make
}
package() {
cd "$srcdir/$_gitname-build"
make DESTDIR="$pkgdir" install
}
Perso je préfère le second qui s'adapte, mais si quelqu'un a un avis…