manjaro-hello/BUILD/PKGBUILD

30 lines
1.0 KiB
Bash
Raw Normal View History

2016-12-17 15:13:18 +01:00
pkgname=manjaro-hello
pkgver=1.0
pkgrel=1
2016-12-18 11:14:14 +01:00
pkgdesc="A tool that helps the new user of Manjaro in the discovery of the system."
url="https://github.com/Huluti/$pkgname"
2016-12-17 15:13:18 +01:00
arch=('any')
license=('GPL')
depends=('gtk3' 'python3')
makedepends=('git')
2016-12-18 11:14:14 +01:00
source=("$pkgname::git+https://github.com/Huluti/$pkgname")
2016-12-17 15:13:18 +01:00
md5sums=('SKIP')
package() {
2016-12-18 11:14:14 +01:00
cd "$srcdir/$pkgname"
mkdir -p "${pkgdir}/usr/share/${pkgname}"
cp -r data "${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}/usr/share/applications/${pkgname}.desktop
install -D -m755 "src/manjaro_hello.py" "${pkgdir}/usr/bin/manjaro-hello"
2016-12-17 15:13:18 +01:00
cd "po"
2016-12-17 19:12:26 +01:00
for lang in $(ls -1 | sed -e 's/\..*$//'); do
2016-12-17 15:13:18 +01:00
if [ $lang != "manjaro-hello" ]
then
2016-12-18 11:14:14 +01:00
install -d -m755 $pkgdir/usr/share/locale/$lang/LC_MESSAGES
msgfmt -c -o "$pkgdir/usr/share/locale/$lang/LC_MESSAGES/$pkgname.mo" $lang.po
2016-12-17 15:13:18 +01:00
fi
done
}