You are not logged in.
So I came across a link for the 'ST' terminal from Suckless today on HackerNews [1]. I went to the AUR, found it was stuck on an old version, but in the comments an alternate PKGBUILD was offered [2].
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/
Last edited by adriftatsea (2012-12-31 03:43:26)
Offline
No, srcdir is defined by makepkg, it is the directory where the source files are downloaded.
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
Last edited by Trilby (2012-12-31 03:30:18)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Updated PKGBUILD
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...
Offline
Thanks ever so much!
Marked as [SOLVED].
Offline