LinuxForum.Fans
Тема

conky-lua - не могу собрать со своими опциями PKGBUILD

Автор: xSPiRiTx 1 сообщений 4147 просмотров
#215357

Началось с того, что нашел интересный для себя conkyrc
http://forum.ubuntu.ru/index.php?topic=63273.msg1023816#msg1023816

в инструкциях был указал .deb пакеты для инсталляции в систему cony-all. На убунтуфорумах подсказали, что нужно собрать из AUR пакет conku-lua, предварительно отредактировав и добавил нужные опции в PKGBUILD.

Вот начинаю собирать со своим PKGBUILD:

text
# Maintainer: Renato Garcia <fgar.renato@gmail.com>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: James Rayner <james@archlinux.org>
# Contributor: Partha Chowdhury <kira.laucas@gmail.com>
# Contributor: Gaetan Bisson <bisson@archlinux.org>

pkgname=conky-lua _pkgname=conky pkgver=1.8.1 pkgrel=3 pkgdesc='An advanced, highly configurable system monitor for X based on torsmo, with lua bindings enabled.' arch=('i686' 'x86_64') url='http://conky.sourceforge.net/' license=('custom') replaces=('torsmo') makedepends=('pkg-config' 'toluapp') depends=('alsa-lib' 'libxml2' 'curl' 'wireless_tools' 'libxft' 'glib2' 'libxdamage' 'imlib2' 'lua' 'cairo') provides=('conky=1.8.1') conflicts=('conky') backup=('etc/conky/conky.conf' 'etc/conky/conky_no_x11.conf') source=("http://downloads.sourceforge.net/project/${_pkgname}/${_pkgname}/${pkgver}/${_pkgname}-${pkgver}.tar.gz" 'current-power.patch') sha1sums=('06bbe9b7eed8603fa7a971b27c5c61f38424ac6f' '2eeef0cc5a0b612826b2a7f0b43b7a3b7e10bf0b')

build() { cd "${srcdir}/${_pkgname}-${pkgver}"

patch -p1 < ../current-power.patch # See FS#21984

sed -i ' /#include <curl\/types.h>/ c\ //#include <curl/types.h>' src/eve.c

sed -i ' /#include <curl\/types.h>/ c\ //#include <curl/types.h>' src/ccurl_thread.c

./configure \ --prefix=/usr \ --sysconfdir=/etc \ --disable-option-checking \ --disable-FEATURE \ --enable-FEATURE[=ARG] \ --disable-dependency-tracking \ --enable-dependency-tracking \ --enable-shared[=PKGS] \ --enable-static[=PKGS] \ --enable-fast-install[=PKGS] \ --disable-libtool-lock \ --disable-config-output \ --disable-own-window \ --disable-ncurses \ --enable-audacious=yes|no|legacy \ --enable-bmpx \ --enable-ibm \ --disable-hddtemp \ --disable-apcupsd \ --enable-iostats \ --disable-math \ --disable-mpd \ --disable-moc \ --enable-xmms2 \ --enable-curl \ --enable-eve \ --enable-rss \ --enable-weather-metar \ --enable-weather-xoap \ --disable-x11 \ --disable-argb \ --enable-imlib2 \ --enable-lua-imlib2 \ --enable-lua \ --enable-lua-cairo \ --enable-wlan \ --disable-portmon \ --disable-rpath \ --disable-double-buffer \ --disable-xdamage \ --disable-xft \ --enable-nvidia \ --disable-alsa \ --enable-debug \ --enable-testing \ --enable-profiling \

make }

package() { cd "${srcdir}/${_pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" }

а он мне выдает вот это:

text
==> Continue building conky-lua ? [Y/n]
==> -----------------------------------
==> 
==> Building and installing package
==> Сборка пакета: conky-lua 1.8.1-3 (Вт. дек. 20 17:53:22 MSK 2011)
==> Проверяю необходимые для запуска зависимости...
==> Проверяю необходимые для сборки зависимости...
==> Получение исходных файлов...
  -> Найден conky-1.8.1.tar.gz
  -> Найден current-power.patch
==> Проверка исходных файлов с помощью sha1sums...
    conky-1.8.1.tar.gz ... Готово
    current-power.patch ... Готово
==> Распаковка исходных файлов...
  -> Извлечение conky-1.8.1.tar.gz с помощью bsdtar
==> Удаление существующего каталога pkg/ ...
==> Запускается build()...
patching file src/linux.c
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:  
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for -gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... config.sub: missing argument
Try `config.sub --help' for more information.
configure: error: /bin/sh ./config.sub   failed
==> ОШИБКА: Произошел сбой в build().
    Преждевременный выход...
==> ERROR: Makepkg was unable to build conky-lua.
==> Restart building conky-lua ? [y/N]
==> ----------------------------------
==>

пробовал качать архив с иходником из аура и там тоже править pkgbuild и собирать самому, но выдает те же ошибки

Войдите или зарегистрируйтесь, чтобы ответить.