Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Lukas Winkler <derwinlu+aur at gmail . com>
- # Modified from aur package dwarffortress-ironhand
- # Contributor: Chris Waddell <christopher at cwaddell . com >
- # Contributor: Christoph Hoopmann <choopm at 0pointer.org>
- # Contributor: Klaas Boesche <aurkagebe _at_ googlemail.com>
- # Modified from aur package dwarffortress-mayday by
- # Contributor: Patrick Chilton <chpatrick _at_ gmail _dot_ com>
- # Original from community by
- # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
- # Contributor: Daenyth <Daenyth+Arch [AT] gmail [DOT] com>
- # Contributor: djnm <nmihalich [at} gmail dott com>
- pkgname=dwarffortress
- pkgver=0.42.01
- _dfver=42_01
- _df_unfuck=dwarf_fortress_unfuck
- pkgrel=1
- pkgdesc="A single-player fantasy game. You control a dwarven outpost or an adventurer in a randomly generated persistent world. Packed with Spacefox's tileset and graphics pack. Does not replace other dwarffortress packages."
- arch=(i686 x86_64)
- url="http://www.bay12forums.com/smf/index.php?topic=129219.0"
- install="dwarffortress.install"
- license=('custom:dwarffortress-sf')
- depends=(gcc-libs glew glu gtk2 libsndfile libxdamage ncurses openal sdl_image sdl_ttf cmake)
- makedepends=(unrar unzip git)
- if [[ $CARCH == 'x86_64' ]]; then
- depends=(gcc-libs-multilib lib32-glew lib32-glu lib32-gtk2 lib32-libsndfile lib32-libxdamage lib32-ncurses lib32-openal lib32-sdl_image lib32-sdl_ttf)
- optdepends=('lib32-nvidia-utils: If you have nvidia graphics'
- 'lib32-catalyst-utils: If you have ATI graphics'
- 'lib32-alsa-lib: for alsa sound'
- 'lib32-libpulse: for pulse sound')
- fi
- backup=('opt/df_linux/data/init/colors.txt'
- 'opt/df_linux/data/init/init.txt'
- 'opt/df_linux/data/init/d_init.txt'
- 'opt/df_linux/data/init/interface.txt')
- source=("http://www.bay12games.com/dwarves/df_${_dfver}_linux.tar.bz2"
- "git://github.com/svenstaro/${_df_unfuck}.git"
- "dwarffortress"
- "dwarffortress.desktop"
- "dwarffortress.png"
- "LICENSE-sf")
- md5sums=('5e119fce35e465a49bf85410d1deea14'
- 'SKIP'
- 'c19aacc31e8df354827db352fecfd200'
- '60de2d654998220f426bbe41f2e57471'
- 'b1d51f82400073af9bb179e34a9209d0'
- '531f90ee12c6752762b64418a100a991')
- _installname=df_linux
- build() {
- cd "$srcdir/$_df_unfuck"
- mkdir -p build && cd build
- cmake ..
- make -j4
- }
- package() {
- cd $srcdir/df_linux
- install -dm755 $pkgdir/opt/
- install -dm775 -o root -g games $pkgdir/opt/${_installname}
- cp -r $srcdir/df_linux/* $pkgdir/opt/${_installname}/
- #cp -rf $srcdir/Spacefox/* $pkgdir/opt/${_installname}/ # copy tileset
- find $pkgdir/opt/${_installname} -type d -exec chmod 755 {} +
- find $pkgdir/opt/${_installname} -type f -exec chmod 644 {} +
- install -Dm755 $srcdir/dwarffortress $pkgdir/usr/bin/dwarffortress
- chmod 755 $pkgdir/opt/${_installname}/libs/Dwarf_Fortress
- install -Dm755 $srcdir/${_df_unfuck}/build/libgraphics.so $pkgdir/opt/${_installname}/libs/libgraphics.so
- ln -s /usr/lib32/libpng.so $pkgdir/opt/${_installname}/libs/libpng.so.3
- rm $pkgdir/opt/${_installname}/libs/{libgcc_s.so.1,libstdc++.so.6}
- install -d -m775 -o root -g games $pkgdir/opt/${_installname}/data/save
- chown -R root:games $pkgdir/opt/${_installname}/data
- find $pkgdir/opt/${_installname}/data -type d -exec chmod 775 {} +
- find $pkgdir/opt/${_installname}/data -type f -exec chmod 664 {} +
- chown root:games $pkgdir/opt/${_installname}
- install -Dm644 $srcdir/dwarffortress.desktop $pkgdir/usr/share/applications/dwarffortress.desktop
- install -Dm644 $srcdir/dwarffortress.png $pkgdir/usr/share/pixmaps/dwarffortress.png
- #install -Dm644 $srcdir/df_linux/readme.txt $pkgdir/usr/share/licenses/dwarffortress-spacefox/readme.txt
- #install -Dm644 $srcdir/LICENSE-sf $pkgdir/usr/share/licenses/dwarffortress-spacefox/LICENSE-sf
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement