1 # Contributor: Bug <bug2000@gmail.com> [Thank you the all mighty omp!]
2 # Maintainer: Bug <bug2000@gmail.com>
6 pkgver="$_pkgvermajor.$_pkgverminor"
8 pkgdesc="Game server based on the 'Byond' language [Build your own net dream]."
10 url="http://www.byond.com/"
12 depends=('libpng' 'libstdc++5' 'ncurses' 'gcc-libs')
13 source=("http://www.byond.com/games/download/build/${_pkgvermajor}/${pkgver}_byond_linux.zip")
14 md5sums=('6f5d34e9bd023e8e53c91a80f4feab1d')
16 cd "${srcdir}/${pkgname}"
18 mkdir -p "${pkgdir}/usr/"{bin,lib,share/byond,share/man/man6}
19 cp -r man "${pkgdir}/usr/share/byond/"
22 -e "/^BYOND_SYSTEM/s|=.*|= ${pkgdir}/usr/share/byond|" \
23 -e "/^BIN_DIR/s|=.*|= ${pkgdir}/usr/bin|" \
24 -e "/^LIB_DIR/s|=.*|= ${pkgdir}/usr/lib|" \
25 -e "/^MAN_DIR/s|=.*|= ${pkgdir}/usr/share/man|" \
26 -e "/ln -f -s/s|\$(BYOND_SYSTEM)|/usr/share/byond|" \
27 -e "/bin\/DreamSeeker/d" \
28 -e "s/libzip/libext/g" \
34 make install || return 1