diff --git a/BUILD/PKGBUILD b/BUILD/PKGBUILD index e69de29..8cd0866 100644 --- a/BUILD/PKGBUILD +++ b/BUILD/PKGBUILD @@ -0,0 +1,30 @@ +pkgname=manjaro-hello +pkgver=1.0 +pkgrel=1 +pkgdesc="Manjaro Hello is a tool that helps the new user of Manjaro in the discovery of the system." +url="https://github.com/Huluti/$_pkgname" +arch=('any') +license=('GPL') +depends=('gtk3' 'python3') +makedepends=('git') +source=("$_pkgname::git+https://github.com/Huluti/$_pkgname") +md5sums=('SKIP') + +package() { + cd "$srcdir/$_pkgname" + mkdir -p "${pkgdir}/usr/share/${_pkgname}" + cp -a data/* "${pkgdir}/usr/share/${_pkgname}" + cp -a ui/* "${pkgdir}/usr/share/${_pkgname}" + install -D -m644 ${_pkgname}.desktop ${pkgdir}/etc/skel/.config/autostart/${_pkgname}.desktop + install -D -m644 ${_pkgname}.desktop ${pkgdir}/usr/share/applications/${_pkgname}.desktop + install -D -m755 "src/${_pkgname}.py" "${pkgdir}/usr/bin/${_pkgname}.py" + cd "po" + for lang in $(ls -1 | sed -e 's/\..*$//') + do + if [ $lang != "manjaro-hello" ] + then + mkdir -p $pkgdir/usr/share/locale/$lang/LC_MESSAGES + msgfmt -c -o "$pkgdir/usr/share/locale/$lg/LC_MESSAGES/$pkgname.mo" $lang.po + fi + done +} diff --git a/manjaro-hello.desktop b/manjaro-hello.desktop index d6d870e..d4dfc79 100755 --- a/manjaro-hello.desktop +++ b/manjaro-hello.desktop @@ -6,4 +6,4 @@ StartupNotify=false Name=Manjaro Hello Exec=/usr/bin/manjaro-hello.py Icon=/usr/share/icons/manjaro.png -Comment=The Manjaro Hello utility. +Comment=Manjaro Hello is a tool that helps the new user of Manjaro in the discovery of the system. diff --git a/src/manjaro-hello.py b/src/manjaro-hello.py index b70c60e..b4e7528 100644 --- a/src/manjaro-hello.py +++ b/src/manjaro-hello.py @@ -31,9 +31,9 @@ class ManjaroHello(): # Path vars self.current_folder = os.getcwd() + "/" if self.current_folder == "/usr/bin/": - self.data_path = "/usr/share/" + self.app + "/data/" + self.data_path = "/usr/share/" + self.app + "/" self.locale_path = "/usr/share/locale/" - self.ui_path = "/usr/share/" + self.app + "/ui/" + self.ui_path = "/usr/share/" + self.app + "/" self.desktop_path = "/usr/share/applications/" + self.app + ".desktop" else: self.data_path = "../data/"