Schism:Gentoo Ebuild

From SDWiki

Jump to: navigation, search
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Schism Tracker mercurial"
HOMEPAGE="http://www.schismtracker.org"
SRC_URI="http://schismtracker.org/hg/archive/default.tar.bz2"

LICENSE="GPL"
SLOT="0"
KEYWORDS=""
IUSE=""

DEPEND=">=media-libs/libsdl-1.2.8-r1"

S="${WORKDIR}/Schism-Tracker-default"

src_unpack(){
    unpack ${A}
    cd ${S}
}

src_compile(){
    autoreconf -i
    mkdir -p build && cd build
    ../configure || die "configure failed"
    emake || die "emake failed"
}

src_install(){
    cd build
    emake DESTDIR="${D}" install || die
    cd ..
    dodoc README TODO AUTHORS NEWS
}
Personal tools