makedeb


ardentryst-git 1.8.r2.7b66716-1


An action/RPG sidescoller with a focus on story and character development

Click here to go back to the commit logs for ardentryst-git.

Commit:


Hash: b680eaf38ce4eaaa9a6c51b5959310076adb9351

Message: Initial mpr release

Diff


diff --git a/.SRCINFO b/.SRCINFO
index fd1f7c8..444cf8e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,17 @@
-pkgbase = ardentryst-git
-	pkgdesc = An action/RPG sidescoller with a focus on story and character development
-	pkgver = r48.a135dba
-	pkgrel = 2
-	url = https://github.com/ardentryst/ardentryst
-	arch = any
-	license = GPL3
-	license = CCPL
-	makedepends = git
-	depends = python-pygame
-	conflicts = ardentryst
-	source = git+https://github.com/ardentryst/ardentryst.git
-	source = ardentryst.sh
-	md5sums = SKIP
-	md5sums = ff70054fd330fea43c67c9b7486080c3
-
+generated-by = makedeb
 pkgname = ardentryst-git
+pkgbase = ardentryst-git
+pkgdesc = An action/RPG sidescoller with a focus on story and character development
+pkgrel = 1
+pkgver = 1.8.1.a135dba
+url = https://github.com/ardentryst/ardentryst
+arch = all
+conflicts = ardentryst
+depends = python3-pygame
+license = GPL3
+license = CCPL
+makedepends = git
+provides = ardentryst
+source = git+https://github.com/ardentryst/ardentryst.git
+b2sums = SKIP
+makedepends = git
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7e351e8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+ardentryst*
+pkg/
+src/
diff --git a/PKGBUILD b/PKGBUILD
index 1244666..cdd7933 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,42 +1,47 @@
-# Maintainer:  <reg-archlinux AT klein DOT tuxli DOT ch> 
-# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
-# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
-# Contributor: Adria Arrufat (archdria) <swiftscythe@gmail.com>
+# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
+# Contributor: (AUR) <reg-archlinux AT klein DOT tuxli DOT ch> 
+# Contributor: Anton Bazhenov (AUR) <anton.bazhenov at gmail>
+# Contributor: Christoph Zeiler (AUR) <archNOSPAM_at_moonblade.dot.org>
+# Contributor: Adria Arrufat (archdria) (AUR) <swiftscythe@gmail.com>
 
 _pkgname=ardentryst
 pkgname=${_pkgname}-git
-pkgver=r48.a135dba
-pkgrel=2
+pkgver=1.8.1.a135dba
+pkgrel=1
 pkgdesc="An action/RPG sidescoller with a focus on story and character development"
-arch=('any')
+arch=('all')
+provides=(${_pkgname})
 conflicts=(${_pkgname})
 url="https://github.com/ardentryst/ardentryst"
 license=('GPL3' 'CCPL')
-depends=('python-pygame') 
+depends=('python3-pygame') 
 makedepends=('git') 
-source=(git+https://github.com/ardentryst/ardentryst.git
-        ${_pkgname}.sh)
-md5sums=('SKIP'
-         'ff70054fd330fea43c67c9b7486080c3')
+source=(git+https://github.com/ardentryst/ardentryst.git)
+b2sums=('SKIP')
 
 pkgver() {
 	cd "${_pkgname}"
- 	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+	printf "1.8.%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
 }
 
 package() {
   cd "${srcdir}"/"${_pkgname}"
 
   # install data
-  install -m755 -d "${pkgdir}"/usr/share/${_pkgname}
+  install -m755 -d "${pkgdir}"/usr/share/games/${_pkgname}
   cp -rf \
-    {Base,Data,Fonts,Levels,Music,Sounds,COPYING*} \
+    {Base,Data,Fonts,Levels,Music,Sounds,COPYING*,README.md} \
     *.{py,txt,png,xml,dig} \
-    "${pkgdir}"/usr/share/${_pkgname}/
+    "${pkgdir}"/usr/share/games/${_pkgname}/
 
   # set permissions
-  find "${pkgdir}"/usr/share/${_pkgname} -type d -exec chmod 755 {} +
-  find "${pkgdir}"/usr/share/${_pkgname} -type f -exec chmod 644 {} +
+  find "${pkgdir}"/usr/share/games/${_pkgname} -type d -exec chmod 755 {} +
+  find "${pkgdir}"/usr/share/games/${_pkgname} -type f -exec chmod 644 {} +
+
+  # doc
+  install -dm755 "${pkgdir}"/usr/share/doc/${_pkgname}/
+  ln -sf /usr/share/games/${_pkgname}/README.md "${pkgdir}"/usr/share/doc/${_pkgname}/readme
+  ln -sf /usr/share/games/${_pkgname}/COPYING "${pkgdir}"/usr/share/doc/${_pkgname}/license 
 
   # install icon
   install -Dm644 icon.png "${pkgdir}"/usr/share/pixmaps/${_pkgname}.png
@@ -45,5 +50,12 @@ package() {
   install -Dm644 Ardentryst.desktop "${pkgdir}"/usr/share/applications/${_pkgname}.desktop
 
   # install launcher
-  install -Dm755 ../${_pkgname}.sh "${pkgdir}"/usr/bin/${_pkgname}
+install -dm644 "${pkgdir}"/usr/games
+launcher='#!/bin/sh
+
+cd /usr/share/games/ardentryst
+exec python3 ardentryst.py "$@"'
+
+  echo "$launcher" > "${pkgdir}"/usr/games/${_pkgname}
+  chmod 755 "${pkgdir}"/usr/games/${_pkgname}
 }
diff --git a/ardentryst.sh b/ardentryst.sh
deleted file mode 100644
index a2617ee..0000000
--- a/ardentryst.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-cd /usr/share/ardentryst
-python3 ardentryst.py "$@"