wmii: multiple stupid tweaks to make this build.

This commit is contained in:
Juan RP 2015-02-28 09:53:38 +01:00
parent f7e1a4a6b3
commit 1e0336eaef
1 changed files with 8 additions and 10 deletions

View File

@ -1,24 +1,22 @@
# Template file for 'wmii' # Template file for 'wmii'
pkgname=wmii pkgname=wmii
version=3.9.2 version=3.9.2
revision=1 revision=2
wrksrc=${pkgname}+ixp-${version} wrksrc=${pkgname}+ixp-${version}
build_style=gnu-makefile conf_files="/etc/wmii/wmiirc"
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
makedepends="libXrandr-devel libXft-devel libXinerama-devel" makedepends="libXrandr-devel libXft-devel libXinerama-devel"
short_desc="A lightweight, dynamic window manager for X11" short_desc="A lightweight, dynamic window manager for X11"
maintainer="Zach L. <koni@archlinux.us>" maintainer="Zach L. <koni@archlinux.us>"
license="GPL-3" license="GPL-3"
homepage="https://code.google.com/p/wmii/" homepage="https://code.google.com/p/wmii/"
distfiles='https://wmii.googlecode.com/files/${pkgname}+ixp-${version}.tbz' distfiles="https://wmii.googlecode.com/files/${pkgname}+ixp-${version}.tbz"
checksum=0466f1a5c534b0ee9fdace2c7a2d251845b7ec0ae80bdb8e68ae6584ebeebf2b checksum=0466f1a5c534b0ee9fdace2c7a2d251845b7ec0ae80bdb8e68ae6584ebeebf2b
pre_build(){
sed "4 s#.*#PREFIX = /usr#" config.mk
}
do_build(){ do_build(){
LDFLAGS="-lXext -lXft -lXrandr -lXrender -lX11 -lXinerama" LDFLAGS+=" -lX11 -lXrender"
make make CC="$CC -c" AR="$AR crs" LD=$CC RANLIB=$RANLIB PREFIX=/usr
}
do_install() {
make PREFIX=/usr DESTDIR=${DESTDIR} install
} }