neverball: add missing builddep, misc changes.

This commit is contained in:
Juan RP 2011-07-20 11:34:27 +02:00
parent 2cf3ecd159
commit f8d4c15232
1 changed files with 16 additions and 23 deletions

View File

@ -24,11 +24,10 @@ Add_dependency run SDL_ttf
Add_dependency run physfs
Add_dependency run libX11
Add_dependency run MesaLib
Add_dependency build gettext
Add_dependency build libpng-devel
Add_dependency build jpeg-devel
Add_dependency build libvorbis-devel
Add_dependency build libX11-devel
Add_dependency build SDL-devel
Add_dependency build SDL_ttf-devel
Add_dependency build physfs-devel
Add_dependency build MesaLib-devel
@ -36,40 +35,34 @@ Add_dependency full desktop-file-utils
do_build()
{
cd ${wrksrc} || return 1
HOME=/ make ${makejobs} ENABLE_NLS=1 DATADIR=/usr/share/neverball \
LOCALEDIR=/usr/share/locale || return 1
HOME=/ LANG=C make ${makejobs} \
ENABLE_NLS=1 DATADIR=/usr/share/neverball \
LOCALEDIR=/usr/share/locale
}
do_install()
{
cd ${wrksrc} || return 1
for dir in usr/bin usr/share/neverball usr/share/locale \
usr/share/applications usr/share/pixmaps \
usr/share/doc/neverball; do
install -d ${DESTDIR}/${dir} || return 1
install -d ${DESTDIR}/${dir}
done
for f in neverball neverputt mapc; do
install -m755 ${f} ${DESTDIR}/usr/bin || return 1
install -m755 ${f} ${DESTDIR}/usr/bin
done
cp -a data/* ${DESTDIR}/usr/share/neverball || return 1
cp -a data/* ${DESTDIR}/usr/share/neverball
find ${DESTDIR}/usr/share/neverball -type f -exec chmod 0644 {} \;
cp -a locale/* ${DESTDIR}/usr/share/locale || return 1
cp -a locale/* ${DESTDIR}/usr/share/locale
install -m644 dist/*.desktop ${DESTDIR}/usr/share/applications \
|| return 1
install -m644 dist/*.png ${DESTDIR}/usr/share/pixmaps || return 1
ln -s neverball_48.png ${DESTDIR}/usr/share/pixmaps/neverball.png \
|| return 1
ln -s neverputt_48.png ${DESTDIR}/usr/share/pixmaps/neverputt.png \
|| return 1
install -m644 dist/*.desktop ${DESTDIR}/usr/share/applications
install -m644 dist/*.png ${DESTDIR}/usr/share/pixmaps
ln -s neverball_48.png ${DESTDIR}/usr/share/pixmaps/neverball.png
ln -s neverputt_48.png ${DESTDIR}/usr/share/pixmaps/neverputt.png
install -m644 doc/* ${DESTDIR}/usr/share/doc/neverball || return 1
install -D -m644 dist/mapc.1 ${DESTDIR}/usr/share/man/man1/mapc.1 \
|| return 1
install -d ${DESTDIR}/usr/share/man/man6 || return 1
install -m644 dist/*.6 ${DESTDIR}/usr/share/man/man6 || return 1
install -m644 doc/* ${DESTDIR}/usr/share/doc/neverball
install -D -m644 dist/mapc.1 ${DESTDIR}/usr/share/man/man1/mapc.1
install -d ${DESTDIR}/usr/share/man/man6
install -m644 dist/*.6 ${DESTDIR}/usr/share/man/man6
}