1 # Maintainer: Patrick Palka <patrick@parcs.ath.cx>
2 # Development: <http://closure.ath.cx/aur-dev>
5 pkgname=$_basepkgname-devel
8 pkgdesc="a bnetd-based gaming network server emulation project"
11 url="http://pvpgn.berlios.de/"
12 source=("http://download.berlios.de/$_basepkgname/$_basepkgname-$pkgver.tar.bz2"
13 "http://download.berlios.de/$_basepkgname/$_basepkgname-support-1.3.tar.gz"
19 install="$pkgname.install"
22 opt/pvpgn/etc/address_translation.conf
23 opt/pvpgn/etc/anongame_infos.conf
24 opt/pvpgn/etc/autoupdate.conf
25 opt/pvpgn/etc/bnalias.conf
26 opt/pvpgn/etc/bnban.conf
27 opt/pvpgn/etc/bnetd.conf
28 opt/pvpgn/etc/bnetd_default_user.cdb
29 opt/pvpgn/etc/bnetd_default_user.plain
30 opt/pvpgn/etc/bnhelp.conf
31 opt/pvpgn/etc/bnissue.txt
32 opt/pvpgn/etc/bnmaps.conf
33 opt/pvpgn/etc/bnmotd-csCZ.txt
34 opt/pvpgn/etc/bnmotd-deDE.txt
35 opt/pvpgn/etc/bnmotd-enUS.txt
36 opt/pvpgn/etc/bnmotd-esES.txt
37 opt/pvpgn/etc/bnmotd-frFR.txt
38 opt/pvpgn/etc/bnmotd-nlNL.txt
39 opt/pvpgn/etc/bnmotd-plPL.txt
40 opt/pvpgn/etc/bnmotd-ptBR.txt
41 opt/pvpgn/etc/bnmotd-ruRU.txt
42 opt/pvpgn/etc/bnmotd-zhCN.txt
43 opt/pvpgn/etc/bnmotd-zhTW.txt
44 opt/pvpgn/etc/bnxpcalc.conf
45 opt/pvpgn/etc/bnxplevel.conf
46 opt/pvpgn/etc/channel.conf
47 opt/pvpgn/etc/command_groups.conf
48 opt/pvpgn/etc/d2cs.conf
49 opt/pvpgn/etc/d2dbs.conf
50 opt/pvpgn/etc/d2server.ini
51 opt/pvpgn/etc/news.txt
52 opt/pvpgn/etc/realm.conf
53 opt/pvpgn/etc/sql_DB_layout2.conf
54 opt/pvpgn/etc/sql_DB_layout.conf
55 opt/pvpgn/etc/supportfile.conf
56 opt/pvpgn/etc/topics.conf
57 opt/pvpgn/etc/tournament.conf
58 opt/pvpgn/etc/versioncheck.conf
60 conflicts=(pvpgn pvpgn-server)
64 cd "$_basepkgname-$pkgver"
66 mkdir -p build && cd build
68 cmake -D CMAKE_INSTALL_PREFIX="/opt/$_basepkgname" ..
75 cd "$_basepkgname-$pkgver/build"
77 make DESTDIR="$pkgdir" install
81 install -vDm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
83 mkdir -p "$pkgdir/usr/bin" && cd "$pkgdir/usr/bin"
84 ln -vs "../../opt/$_basepkgname/bin/"* .
86 mkdir -p "$pkgdir/usr/sbin" && cd "$pkgdir/usr/sbin"
87 ln -vs "../../opt/$_basepkgname/sbin/"* .
89 mkdir -p "$pkgdir/usr/share/man/man1" && cd "$pkgdir/usr/share/man/man1"
90 ln -vs "../../../../opt/$_basepkgname/share/man/"* .
92 cd "$srcdir/$_basepkgname-support-1.3"
94 install -vm644 "$file" "$pkgdir/opt/$_basepkgname/var/files"
97 install -vDm755 "$srcdir/bnetd" "$pkgdir/etc/rc.d/bnetd"
99 for daemon in d2dbs d2cs bntrackd; do
100 ln -vs bnetd "$pkgdir/etc/rc.d/$daemon"
103 #mkdir -p "$pkgdir/var/log" && cd "$pkgdir/var/log"
104 #ln -vs "../../opt/pvpgn-devel/var/"{d2dbs,d2cs,bntrackd}.log .
108 md5sums=('39147e67b40a770bb05a56ed677971d3'
109 'd7e65fc8fe36d202ad23589565a5a9b7'
110 '7f8adb9838391506cd6718e6b06693e9'
111 '214e397072b19e3748a28cbf11141437')