Commit | Line | Data |
---|---|---|
78f11c87 JB |
1 | # Description: A wallpaper setting utility for X11 |
2 | # URL: http://thegraveyard.org/hsetroot.php | |
3 | # Packager: Brett Goulder, predatorfreak at dcaf-security dot org | |
4 | # Maintainer: Brett Goulder, predatorfreak at dcaf-security dot org. | |
5 | # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org | |
6 | # Depends on: imlib2 | |
7 | ||
8 | name=hsetroot | |
9 | version=1.0.2 | |
10 | release=1 | |
11 | source=(http://thegraveyard.org/files/$name-$version.tar.gz) | |
12 | ||
13 | ||
14 | build() { | |
15 | cd $name-$version | |
16 | ||
17 | export DEFAULT_LIBS="-L$CLFS/usr/lib" | |
18 | export DEFAULT_CFLAGS="-I$CLFS/usr/include" | |
19 | export IMLIB2_LIBS="$DEFAULT_LIBS -lImlib2" | |
20 | export IMLIB2_CFLAGS="$DEFAULT_CFLAGS" | |
21 | ||
22 | echo "ac_cv_prog_imlib2config_cmd=$CLFS/usr/bin/imlib2-config" > config.cache | |
23 | ||
24 | ./configure --build=$CHOST \ | |
25 | --host=$CTARGET \ | |
26 | --prefix=/usr \ | |
27 | --disable-nls \ | |
28 | --with-x \ | |
29 | --cache-file=config.cache | |
30 | ||
31 | sed -i src/Makefile config/Makefile -e "s|/usr|$CLFS/usr|" | |
32 | make | |
33 | install -D -m 0755 src/$name $PKG/usr/bin/$name | |
34 | } |