Update PKGBUILD
parent
faefc0e63d
commit
a56cb13ae3
|
@ -1,29 +1,29 @@
|
||||||
pkgname=manjaro-hello
|
pkgname=manjaro-hello
|
||||||
pkgver=1.0
|
pkgver=1.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Manjaro Hello is a tool that helps the new user of Manjaro in the discovery of the system."
|
pkgdesc="A tool that helps the new user of Manjaro in the discovery of the system."
|
||||||
url="https://github.com/Huluti/$_pkgname"
|
url="https://github.com/Huluti/$pkgname"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
depends=('gtk3' 'python3')
|
depends=('gtk3' 'python3')
|
||||||
makedepends=('git')
|
makedepends=('git')
|
||||||
source=("$_pkgname::git+https://github.com/Huluti/$_pkgname")
|
source=("$pkgname::git+https://github.com/Huluti/$pkgname")
|
||||||
md5sums=('SKIP')
|
md5sums=('SKIP')
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/$_pkgname"
|
cd "$srcdir/$pkgname"
|
||||||
mkdir -p "${pkgdir}/usr/share/${_pkgname}"
|
mkdir -p "${pkgdir}/usr/share/${pkgname}"
|
||||||
cp -a data/* "${pkgdir}/usr/share/${_pkgname}"
|
cp -r data "${pkgdir}/usr/share/${pkgname}"
|
||||||
cp -a ui/* "${pkgdir}/usr/share/${_pkgname}"
|
cp -r ui "${pkgdir}/usr/share/${pkgname}"
|
||||||
install -D -m644 ${_pkgname}.desktop ${pkgdir}/etc/skel/.config/autostart/${_pkgname}.desktop
|
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 -m644 ${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
|
||||||
install -D -m755 "src/manjaro_hello.py" "${pkgdir}/usr/bin/manjaro_hello.py"
|
install -D -m755 "src/manjaro_hello.py" "${pkgdir}/usr/bin/manjaro-hello"
|
||||||
cd "po"
|
cd "po"
|
||||||
for lang in $(ls -1 | sed -e 's/\..*$//'); do
|
for lang in $(ls -1 | sed -e 's/\..*$//'); do
|
||||||
if [ $lang != "manjaro-hello" ]
|
if [ $lang != "manjaro-hello" ]
|
||||||
then
|
then
|
||||||
mkdir -p $pkgdir/usr/share/locale/$lang/LC_MESSAGES
|
install -d -m755 $pkgdir/usr/share/locale/$lang/LC_MESSAGES
|
||||||
msgfmt -c -o "$pkgdir/usr/share/locale/$lg/LC_MESSAGES/$pkgname.mo" $lang.po
|
msgfmt -c -o "$pkgdir/usr/share/locale/$lang/LC_MESSAGES/$pkgname.mo" $lang.po
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue