summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorkujiu (@havelock.kujiu.org)2017-02-28 21:18:03 +0100
committerkujiu (@havelock.kujiu.org)2017-02-28 21:18:03 +0100
commit743f53e251474b216bec93c04f45e11d9326e236 (patch)
treee78f80d68d8b4e21e7c69ce387b2735d07e53097
parentee607bbea6dbac6569dfecbe5a36b14319898799 (diff)
downloadaur-743f53e251474b216bec93c04f45e11d9326e236.tar.gz
Fix permissions, refactor PKGBUILD
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD22
-rw-r--r--rolisteam.desktop8
3 files changed, 21 insertions, 14 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..b4a52410c5d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+pkg
+src
+rolisteam
+rolisteam-*.tar.xz
+.*.swp
diff --git a/PKGBUILD b/PKGBUILD
index 253ba480b2c..228f28c60c2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,8 +10,9 @@ url="http://www.rolisteam.org"
license=(GPL)
depends=('qt5-base' 'zlib')
makedepends=('qt5-tools' 'gcc' 'git')
-source=("git+https://github.com/Rolisteam/rolisteam.git#tag=v1.8.0")
-sha256sums=('SKIP')
+source=("git+https://github.com/Rolisteam/rolisteam.git#tag=v${pkgver}"
+ "rolisteam.desktop")
+sha256sums=('SKIP' 'ec7a7cf3b02899f3a4f6af80010d369a54faf8b03c24726bebc370bc3d36e660')
build()
{
@@ -19,26 +20,19 @@ build()
git submodule init
git submodule update
lrelease translations/*.ts
- qmake-qt5
+ qmake-qt5 "PREFIX=/usr/bin"
make
}
package()
{
- cd "${srcdir}/${_pkgname}"
- INSTALL_ROOT="${pkgdir}" make install
mkdir -p "${pkgdir}"/usr/share/applications
mkdir -p "${pkgdir}"/usr/share/icons/hicolor/256x256/apps
+ install -Dm644 "rolisteam.desktop" "${pkgdir}/usr/share/applications/rolisteam.desktop"
+ cd "${srcdir}/${_pkgname}"
+ INSTALL_ROOT="${pkgdir}" make install
cp resources/logo/256-icone.png "${pkgdir}"/usr/share/icons/hicolor/256x256/apps/rolisteam.png
- DESKTOPFILE="${pkgdir}"/usr/share/applications/"${_pkgname}".desktop
- echo "[Desktop Entry]" > "${DESKTOPFILE}"
- echo "Name=Rolisteam" >> "${DESKTOPFILE}"
- echo "Comment=${pkgdesc}" >> "${DESKTOPFILE}"
- echo "Exec=${_pkgname}" >> "${DESKTOPFILE}"
- echo "Terminal=false" >> "${DESKTOPFILE}"
- echo "Type=Application" >> "${DESKTOPFILE}"
- echo "Icon="${pkgdir}"/usr/share/icons/hicolor/256x256/apps/rolisteam.png" >> "${DESKTOPFILE}"
- echo "Categories=Game;" >> "${DESKTOPFILE}"
+ chmod -R g-w "${pkgdir}"/usr
}
diff --git a/rolisteam.desktop b/rolisteam.desktop
new file mode 100644
index 00000000000..7718821600d
--- /dev/null
+++ b/rolisteam.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Rolisteam
+Comment=Virtual tabletop software. It helps you to manage tabletop role playing games with remote friends/players.
+Exec=rolisteam
+Terminal=false
+Type=Application
+Icon=/usr/share/icons/hicolor/256x256/apps/rolisteam.png
+Categories=Game