You are not logged in.

#1 2012-12-31 03:23:35

adriftatsea
Member
From: earth
Registered: 2012-08-03
Posts: 6

[SOLVED] Using AUR - 'Config.h was not found in the build directory..'

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

#2 2012-12-31 03:28:30

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,987
Website

Re: [SOLVED] Using AUR - 'Config.h was not found in the build directory..'

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)


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#3 2012-12-31 03:30:52

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 19,022
Website

Re: [SOLVED] Using AUR - 'Config.h was not found in the build directory..'

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...


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#4 2012-12-31 03:43:45

adriftatsea
Member
From: earth
Registered: 2012-08-03
Posts: 6

Re: [SOLVED] Using AUR - 'Config.h was not found in the build directory..'

Thanks ever so much!

Marked as [SOLVED].

Offline

Board footer

Powered by FluxBB