[arch-general] /usr/bin/makepkg: eval: line 2180: unexpected EOF while looking for matching `}'

David C. Rankin drankinatty at suddenlinkmail.com
Fri Jan 24 20:52:56 EST 2014


Guys,

  I have a build that completes successfully, but the package is empty (other
than .PKGINFO and .MTREE). The build output contains the following:

/usr/bin/makepkg: eval: line 2180: unexpected EOF while looking for matching `}'
/usr/bin/makepkg: eval: line 2181: syntax error: unexpected end of file
==> Making package: tde-adept 14.0.0-1 (Fri Jan 24 19:41:55 CST 2014)
==> Retrieving sources...
  -> Found applications-adept.tar.gz
==> Validating source files with md5sums...
    applications-adept.tar.gz ... Passed
/usr/bin/makepkg: eval: line 2180: unexpected EOF while looking for matching `}'
/usr/bin/makepkg: eval: line 2181: syntax error: unexpected end of file

  I have checked forums, etc. and this usually means you have missed a closing '
or " somewhere in the pkgbuild and it is causing problems in makepkg. I have
checked the pkgbuild closely and run namcap and it doesn't report any problems.
Is there something obvious below, or is this a bug?

  The PKGBUILD is:

# Maintainer: David C. Rankin <drankinatty at gmail dot com>

pkgname=tde-adept
pkgver=14.0.0
pkgrel=1
pkgdesc="TDE adept Advanced Package Management Tool - Trinity upstream GIT version"
arch=('i686' 'x86_64')
url="http://scm.trinitydesktop.org/scm/git/${pkgname#*-}"
license=('GPL')
groups=('tde-dev' 'tde-complete')
depends=('tde-tdebase')
makedepends=('pkgconfig' 'autoconf')
# optdepends=()
provides=("${pkgname#*-}")
options=('staticlibs' 'libtool' '!emptydirs')
# install='pkgname.install'
source=("applications-${pkgname#*-}.tar.gz")
md5sums=('4beffd7764446ae737e70c36084bdc4e')

build() {

  cd ${srcdir}

  ## Set up environment
  msg "Setting PATH, Trinity Environment variables"
  # Source the QT and TDE profile
  [ "$QTDIR" = "" ] && . /etc/profile.d/tqt3.sh       # or tqt3.sh
  [ "$TDEDIR" = "" ] && . /etc/profile.d/trinity.sh   # or tde.sh

  ## Generate config files and update with autoreconf
  cd ${srcdir}/${pkgname#*-}

  msg "Copying system libtool files...."
  cp /usr/share/aclocal/libtool.m4 ./admin/libtool.m4.in
  cp /usr/share/libtool/config/ltmain.sh ./admin

  msg "Running make -f admin/Makefile.common ...."
  make -f admin/Makefile.common

  ## configure
  msg "Configuring - ${pkgname}..."
  ./configure \
    --prefix=${TDEDIR} \
    --with-qt-dir=${QTDIR} \
    --with-qt-includes=${QTDIR}/include \
    --with-qt-libraries=${QTDIR}/lib \
    --with-extra-includes="/usr/include/tqt:/usr/include/tqt/Qt" \
    --with-extra-libs=${TDEDIR}/lib/trinity \
    --sysconfdir=${TDEDIR}/etc \
    --localstatedir=/var \
    --enable-debug=full

  msg "Building - ${pkgname}..."

  make $NUMJOBS

}

package() {
  msg "Packaging - $pkgname-$pkgver"
  cd "${srcdir}/${pkgname#*-}"
  make -j1 DESTDIR="$pkgdir" install
}



-- 
David C. Rankin, J.D.,P.E.


More information about the arch-general mailing list