2016-12-18 17:09:29 +01:00
|
|
|
_pkgname=manjaro-hello
|
|
|
|
pkgname=${_pkgname}-git
|
|
|
|
pkgver=0.1
|
2016-12-17 15:13:18 +01:00
|
|
|
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."
|
2016-12-18 17:09:29 +01:00
|
|
|
url="https://github.com/Huluti/${_pkgname}"
|
2016-12-17 15:13:18 +01:00
|
|
|
arch=('any')
|
|
|
|
license=('GPL')
|
|
|
|
depends=('gtk3' 'python3')
|
2016-12-18 19:07:18 +01:00
|
|
|
optdepends=('calamares: universal installer framework')
|
2016-12-17 15:13:18 +01:00
|
|
|
makedepends=('git')
|
2016-12-18 17:09:29 +01:00
|
|
|
replaces=('manjaro-hello')
|
|
|
|
provides=('manjaro-hello')
|
|
|
|
conflicts=('manjaro-hello')
|
|
|
|
source=("${_pkgname}::git+https://github.com/Huluti/${_pkgname}")
|
2016-12-17 15:13:18 +01:00
|
|
|
md5sums=('SKIP')
|
|
|
|
|
2016-12-18 17:09:29 +01:00
|
|
|
pkgver() {
|
|
|
|
cd "${_pkgname}"
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
2016-12-17 15:13:18 +01:00
|
|
|
package() {
|
2016-12-18 17:09:29 +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/${_pkgname}"
|
2016-12-18 22:55:41 +01:00
|
|
|
cd po
|
|
|
|
for lang in $(ls *.po); do
|
|
|
|
install -d -m755 ${pkgdir}/usr/share/locale/${lang::-3}/LC_MESSAGES
|
|
|
|
msgfmt -c -o "${pkgdir}/usr/share/locale/${lang::-3}/LC_MESSAGES/${_pkgname}.mo" ${lang}
|
2016-12-17 15:13:18 +01:00
|
|
|
done
|
|
|
|
}
|