summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDifarem2017-05-20 19:12:13 +0200
committerDifarem2017-05-20 19:12:13 +0200
commit722f2fa1d8e5c1a6b2e82052bcc559ee72faeaa4 (patch)
tree04bb847379ed8037c02dd608e66bdec6997f2bd1
parenta18fb00437a259daf19583762ad4fcf92c55dbf1 (diff)
downloadaur-pxtone-collage.tar.gz
updated PKGBUILD and changed user data location
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD18
-rwxr-xr-xlauncher27
3 files changed, 34 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index db1b62a5217..b0175612a1f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = pxtone-collage
pkgdesc = A set of tools for creating or playing pxtone files and other pxtone-related formats.
pkgver = 0925
- pkgrel = 2
+ pkgrel = 3
url = http://studiopixel.sakura.ne.jp/pxtone/index.html
arch = any
license = BSD
@@ -26,7 +26,7 @@ pkgbase = pxtone-collage
md5sums = fbea9e51af9a97aadcac46480fc3f5c5
md5sums = a2959cd6ebbddbde0ff676e5b298f175
md5sums = 24b5fbce51f0f2017e21aeedefd2802d
- md5sums = f8df510bd8562648bd328172994e768b
+ md5sums = 081483b5183d8d2b7408177269669716
pkgname = pxtone-collage
diff --git a/PKGBUILD b/PKGBUILD
index 68b0d2ea085..101fd48920e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,13 @@
-# Maintainer: Josh Mandle <difarem@gmail.com>
+# Maintainer: Difarem <difarem@gmail.com>
pkgname=pxtone-collage
pkgver=0925
-pkgrel=2
+pkgrel=3
pkgdesc="A set of tools for creating or playing pxtone files and other pxtone-related formats."
arch=(any)
url="http://studiopixel.sakura.ne.jp/pxtone/index.html"
license=('BSD')
depends=(wine)
makedepends=(gendesk)
-checkdepends=()
-optdepends=()
-provides=()
-conflicts=()
-replaces=()
-backup=()
-options=()
-install=
-changelog=
source=(http://studiopixel.sakura.ne.jp/binaries/pxtone_$pkgver.zip
pxtone-collage.png pxtone-noise.png pxtone-voice.png pxtone-player.png
pxtone-collage pxtone-noise pxtone-voice pxtone-player launcher)
@@ -30,7 +21,7 @@ md5sums=('caa267b0255e2c10f62dbea236c317f3'
'fbea9e51af9a97aadcac46480fc3f5c5'
'a2959cd6ebbddbde0ff676e5b298f175'
'24b5fbce51f0f2017e21aeedefd2802d'
- 'f8df510bd8562648bd328172994e768b')
+ '081483b5183d8d2b7408177269669716')
validpgpkeys=()
prepare() {
@@ -86,4 +77,7 @@ package() {
cp -ra pxtone/* $pkgdir/usr/share/pxtone
find $pkgdir/usr/share/pxtone -type d -exec chmod 755 "{}" \;
find $pkgdir/usr/share/pxtone -type f -exec chmod 644 "{}" \;
+ rmdir $pkgdir/usr/share/pxtone/my_project # empty directory, namcap complains
+
+ install -Dm644 pxtone/readme.txt $pkgdir/usr/share/licenses/pxtone-collage/readme.txt # license
}
diff --git a/launcher b/launcher
index 8ecc2f8091a..f1941f20b6f 100755
--- a/launcher
+++ b/launcher
@@ -1,7 +1,32 @@
#!/bin/bash
+
+if [ ! -d "$HOME"/pxtone ] ; then
+ # the project/material folders don't exist
+ echo "Creating user data directory at $HOME/pxtone..."
+ mkdir -p "$HOME"/pxtone
+
+ # if the data folder exists AND the data folders aren't symlinks, copy everything over
+ # this will happen when updating from an older package
+ if [ -d "$HOME"/.pxtone ] && [ ! -L "$HOME"/.pxtone/my_material ] ; then
+ echo "Moving data from its old location ($HOME/.pxtone)..."
+ mv "$HOME"/.pxtone/my_material "$HOME"/pxtone/material
+ ln -s "$HOME"/pxtone/material "$HOME"/.pxtone/my_material
+ mv "$HOME"/.pxtone/my_project "$HOME"/pxtone/project
+ ln -s "$HOME"/pxtone/project "$HOME"/.pxtone/my_project
+ else
+ echo "Copying factory files..."
+ # copy the factory files
+ cp -r /usr/share/pxtone/my_material "$HOME"/pxtone/material
+ cp -r /usr/share/pxtone/my_project "$HOME"/pxtone/project
+ fi
+fi
+
if [ ! -d "$HOME"/.pxtone ] ; then
+ # symlink everything
+ echo "Linking pxtone to $HOME/.pxtone..."
mkdir -p "$HOME"/.pxtone
- cp -r /usr/share/pxtone/{my_material,my_project} "$HOME"/.pxtone
+ ln -s "$HOME"/pxtone/material "$HOME"/.pxtone/my_material
+ ln -s "$HOME"/pxtone/project "$HOME"/.pxtone/my_project
ln -s /usr/share/pxtone/pt{Collage,Noise,Voice,Player}.exe "$HOME"/.pxtone
ln -s /usr/share/pxtone/{sample,pxtone_include} "$HOME"/.pxtone
ln -s /usr/share/pxtone/pxtone{Tool,Win32}.dll "$HOME"/.pxtone