updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / byond / PKGBUILD
blob93cba012c9fd104a9427449928317e5b307e2288
1 # Contributor: Bug <bug2000@gmail.com> [Thank you the all mighty omp!]
2 # Maintainer: Bug <bug2000@gmail.com>
3 pkgname=byond
4 _pkgvermajor=493
5 _pkgverminor=1116
6 pkgver="$_pkgvermajor.$_pkgverminor"
7 pkgrel=1
8 pkgdesc="Game server based on the 'Byond' language [Build your own net dream]."
9 arch=('i686' 'x86_64')
10 url="http://www.byond.com/"
11 license=('unknown')
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')
15 build() {
16     cd "${srcdir}/${pkgname}"
18     mkdir -p "${pkgdir}/usr/"{bin,lib,share/byond,share/man/man6}
19     cp -r man "${pkgdir}/usr/share/byond/"
21     sed -i \
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" \
29         -e "/libpng/d" \
30         -e "/ldconfig/d" \
31         Makefile || return 1
33     make || return 1
34     make install || return 1