summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLarzid2016-10-04 00:24:27 -0500
committerLarzid2016-10-04 00:24:27 -0500
commit448c9411088bc9c2b360b2cca63e5e1e832318d8 (patch)
tree971fd3481dd3f6cd0d73ee0f860a0f0c1330f7ef /PKGBUILD
downloadaur-448c9411088bc9c2b360b2cca63e5e1e832318d8.tar.gz
SOTW Development branch
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..63b369a16d10
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,55 @@
+#Maintainer: Larzid <juanitocampamocha@gmail.com>
+pkgname=sotw-dev
+pkgver=0.5.6
+pkgrel=1
+epoch=
+pkgdesc="Shadow Of The Wyrm by Julian Day - Development branch."
+arch=('x86_64')
+url="http://www.shadowofthewyrm.org/"
+license=('MIT')
+groups=()
+depends=('xerces-c' 'zlib' 'ncurses' 'lua51' 'boost')
+makedepends=('premake' 'mercurial')
+checkdepends=()
+optdepends=('gtest: for debug build')
+provides=(sotw)
+conflicts=(sotw)
+replaces=()
+backup=()
+options=()
+changelog=
+source=('hg+https://hg@bitbucket.org/prolog/shadow-of-the-wyrm')
+noextract=()
+md5sums=('SKIP')
+validpgpkeys=()
+
+build() {
+ cd shadow-of-the-wyrm
+ premake4 --lua_include=/usr/include/lua5.1 --lua_link=lua5.1 gmake
+ make config=release
+ #make config=debug
+}
+
+package() {
+ echo "cd /usr/share/shadow-of-the-wyrm/sotw" > ${srcdir}/shadow-of-the-wyrm/sotw.sh
+ echo "./sotw" >> ${srcdir}/shadow-of-the-wyrm/sotw.sh
+ chmod +x ${srcdir}/shadow-of-the-wyrm/sotw.sh
+ install -D -m644 ${srcdir}/shadow-of-the-wyrm/LICENSE "${pkgdir}/usr/share/licenses/shadow-of-the-wyrm/LICENSE"
+ install -d -m777 ${srcdir}/shadow-of-the-wyrm/sotw "${pkgdir}/usr/share/shadow-of-the-wyrm/sotw"
+ install -D ${srcdir}/shadow-of-the-wyrm/sotw/howdoi.txt "${pkgdir}/usr/share/shadow-of-the-wyrm/sotw/howdoi.txt"
+ install -D ${srcdir}/shadow-of-the-wyrm/sotw/README.md "${pkgdir}/usr/share/shadow-of-the-wyrm/sotw/README.md"
+ install -D ${srcdir}/shadow-of-the-wyrm/sotw/shadowofthewyrmtext_blank.ini "${pkgdir}/usr/share/shadow-of-the-wyrm/sotw/shadowofthewyrmtext_blank.ini"
+ install -D ${srcdir}/shadow-of-the-wyrm/sotw/shadowofthewyrmtext_en.ini "${pkgdir}/usr/share/shadow-of-the-wyrm/sotw/shadowofthewyrmtext_en.ini"
+ install -D ${srcdir}/shadow-of-the-wyrm/sotw/sotw "${pkgdir}/usr/share/shadow-of-the-wyrm/sotw/sotw"
+ install -D ${srcdir}/shadow-of-the-wyrm/sotw/swyrm.ini "${pkgdir}/usr/share/shadow-of-the-wyrm/sotw/swyrm.ini"
+ install -D ${srcdir}/shadow-of-the-wyrm/ShadowOfTheWyrm "${pkgdir}/usr/share/shadow-of-the-wyrm/ShadowOfTheWyrm"
+ install -D ${srcdir}/shadow-of-the-wyrm/shadowofthewyrmtext_blank.ini "${pkgdir}/usr/share/shadow-of-the-wyrm/shadowofthewyrmtext_blank.ini"
+ install -D ${srcdir}/shadow-of-the-wyrm/shadowofthewyrmtext_en.ini "${pkgdir}/usr/share/shadow-of-the-wyrm/shadowofthewyrmtext_en.ini"
+ install -D ${srcdir}/shadow-of-the-wyrm/swyrm.ini "${pkgdir}/usr/share/shadow-of-the-wyrm/swyrm.ini"
+ cp -R ${srcdir}/shadow-of-the-wyrm/sotw/data ${pkgdir}/usr/share/shadow-of-the-wyrm/sotw/data
+ cp -R ${srcdir}/shadow-of-the-wyrm/sotw/docs ${pkgdir}/usr/share/shadow-of-the-wyrm/sotw/docs
+ cp -R ${srcdir}/shadow-of-the-wyrm/sotw/licenses ${pkgdir}/usr/share/shadow-of-the-wyrm/sotw/licenses
+ cp -R ${srcdir}/shadow-of-the-wyrm/sotw/scripts ${pkgdir}/usr/share/shadow-of-the-wyrm/sotw/scripts
+ cp -R ${srcdir}/shadow-of-the-wyrm/sotw/texts ${pkgdir}/usr/share/shadow-of-the-wyrm/sotw/texts
+ install -D ${srcdir}/shadow-of-the-wyrm/sotw.sh ${pkgdir}/usr/bin/sotw
+} \ No newline at end of file