Receipt for: amiwm
source
stuff/amiwm.xdesktop
stuff/patches/amiwm-man.patch
stuff/ppmtoinfo.1
stuff/requestchoice.1
PACKAGE="amiwm"
VERSION="0.21pl2"
CATEGORY="x-window"
SHORT_DESC="Amiga look alike window manager"
MAINTAINER="al.bobylev@gmail.com"
LICENSE="other"
WEB_SITE="http://www.lysator.liu.se/~marcus/amiwm.html"
TARBALL="$PACKAGE$VERSION.tar.gz"
WGET_URL="http://ftp.lysator.liu.se/pub/X11/wm/amiwm/$TARBALL"
DEPENDS="xorg-libICE xorg-libSM xorg-libX11 xorg-libXext xorg-libXmu"
BUILD_DEPENDS="xorg-libX11-dev xorg-libXext-dev xorg-libICE-dev xorg-libXt-dev \
xorg-libXmu-dev"
HOST_ARCH="i486 x86_64"
current_version()
{
wget -O - ${WGET_URL%/*} 2>/dev/null | \
sed "/latest/d;/$PACKAGE/!d;/tar/!d;s|.*$PACKAGE\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}
compile_rules() {
patch -p1 < $stuff/patches/amiwm-man.patch
./configure $CONFIGURE_ARGS &&
make gram.h &&
make -j1 &&
make prefix=$install/usr mandir='${prefix}/share/man' install || return 1
ln -sf ../lib/amiwm/requestchoice $install/usr/bin/requestchoice
install -Dm644 $stuff/amiwm.xdesktop $install/usr/share/xsessions/amiwm.desktop
install -Dm644 $stuff/*.1 $install/usr/share/man/man1 # from Debian
gzip -9 $install/usr/share/man/man1/*
mkdir -p $install/usr/share/doc
install -Dm644 README* LICENSE $install/usr/share/doc
}
genpkg_rules() {
cp -a $install/usr $fs
}