Marked as [SOLVED].
]]>pkgname=st
pkgver=0.3
pkgrel=0
pkgdesc='A simple virtual terminal emulator for X.'
arch=('i686' 'x86_64')
license=('MIT')
depends=('libx11')
makedepends=('ncurses')
url="http://st.suckless.org"
source=(http://dl.suckless.org/st/$pkgname-$pkgver.tar.gz)
md5sums=('b81392157bd9ff7a89da8a90588e420e')
build() {
cd $srcdir/$pkgname-$pkgver
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 PREFIX=/usr DESTDIR="$pkgdir" TERMINFO="$pkgdir/usr/share/terminfo" install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README"
}
Moving to AUR Issues...
]]>In this case that PKGBUILD is simply not written correctly. That line should test whether the config file exists as that is only for cutom user configuration. As you do not have that file, just delete that line from the PKGBUILD.
If you reply to the author of that PKGBUILD, they should at least change it to the following:
[[ -f $srcdir/config.h ]] && cp $srcdir/config.h config.h
But when using that PKGBUILD I get the following message:
Config.h was not found in the build directory and is not a URL.
The build failed.
So looking through the code, it mentions '$srcdir' but it is not specified. Should I have this variable set in my bashrc/zshrc?
[1] http://news.ycombinator.com/item?id=4985533
[2] https://aur.archlinux.org/packages/st/