forked from Thulium-Drake/trinitycore-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
trinitycore-database3.3.5.recipe
41 lines (34 loc) · 1.25 KB
/
trinitycore-database3.3.5.recipe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[VERSION]
B_GITHUBVER https://github.com/TrinityCore/TrinityCore 3.3.5
[REQUIRED BUSTER]
[BUILD BUSTER]
B_GET git https://github.com/TrinityCore/TrinityCore.git trinitycore-src3.3.5
cd trinitycore-src3.3.5
git checkout 3.3.5
TDB_SQL=$(grep FULL_DATABASE revision_data.h.in.cmake | awk 'gsub("\"","",$3) {print $3}')
mkdir -p $B_INSTALLDIR/opt/trinitycore/sql/base
if [[ ! -f $B_FILES/opt/trinitycore/sql/base/$TDB_SQL ]]
then
rm -f $B_FILES/B_DEBIAN/opt/trinitycore/sql/base/TDB*.sql
TDB_FILE=$(echo $TDB_SQL | awk 'gsub("sql","7z")')
TDB_VERSION=$(echo $TDB_SQL | cut -d_ -f4)
wget https://github.com/TrinityCore/TrinityCore/releases/download/TDB${TDB_VERSION}/${TDB_FILE}
p7zip -d ${TDB_FILE}
mv TDB_*${TDB_VERSION}*.sql $B_FILES/opt/trinitycore/sql/base
fi
cp -r sql $B_INSTALLDIR/opt/trinitycore
cp -r $B_FILES/opt $B_INSTALLDIR
[PKG]
type=deb
torepo=y
[DEB BUSTER]
Package: trinitycore-database3.3.5
Version: B_VERSION
Section: trinitycore
Priority: optional
Architecture: B_ARCH
Depends: mariadb-server
Maintainer: [email protected]
Description: TrinityCore is an MMORPG framework that is built using C++, and using a back-end of MySQL for the DB content.
This package contains the SQL updates for VERSION
Homepage: https://www.trinitycore.org/