Zren / plasma-applet-eventcalendar

https://store.kde.org/p/998901/
469 stars 92 forks source link

Please improve PKGBUILD code for easly install translations #94

Closed FadeMind closed 5 years ago

FadeMind commented 5 years ago

@Zren Please improve PKGBUILD code for easly install translations cause in default AUR PKGBUILD does not do this.

# Maintainer: XavierCLL <xavier.corredor.llano (a) gmail.com>

pkgname=plasma5-applets-eventcalendar
pkgver=63
pkgrel=1
pkgdesc="An extended calendar plasmoid with daily weather forecasts and events from Google Calendar. Also includes a timer and 24 hour forecast graph."
arch=('any')
url="https://store.kde.org/p/998901/"
license=('GPL')
depends=('plasma-workspace' 'qt5-graphicaleffects')
makedepends=(bash gettext)
source=("https://github.com/Zren/plasma-applet-eventcalendar/archive/v$pkgver.tar.gz")
md5sums=('3fb7f76a32049c834d46cac1063e1873')

package() {
    cd plasma-applet-eventcalendar-$pkgver/package
    mkdir -p $pkgdir/usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar
    cp -r * $pkgdir/usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar
    cd $pkgdir/usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/translate
    sh ./build 
    mkdir -p $pkgdir/usr/share/locale
    mv $pkgdir/usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/locale $pkgdir/usr/share/
    rm -rf $pkgdir/usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/translate
}

Works like a charm

Screenshot_20190815_102649

$ pacman -Ql plasma5-applets-eventcalendar
plasma5-applets-eventcalendar /usr/
plasma5-applets-eventcalendar /usr/share/
plasma5-applets-eventcalendar /usr/share/locale/
plasma5-applets-eventcalendar /usr/share/locale/da/
plasma5-applets-eventcalendar /usr/share/locale/da/LC_MESSAGES/
plasma5-applets-eventcalendar /usr/share/locale/da/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.mo
plasma5-applets-eventcalendar /usr/share/locale/de/
plasma5-applets-eventcalendar /usr/share/locale/de/LC_MESSAGES/
plasma5-applets-eventcalendar /usr/share/locale/de/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.mo
plasma5-applets-eventcalendar /usr/share/locale/el/
plasma5-applets-eventcalendar /usr/share/locale/el/LC_MESSAGES/
plasma5-applets-eventcalendar /usr/share/locale/el/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.mo
plasma5-applets-eventcalendar /usr/share/locale/es/
plasma5-applets-eventcalendar /usr/share/locale/es/LC_MESSAGES/
plasma5-applets-eventcalendar /usr/share/locale/es/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.mo
plasma5-applets-eventcalendar /usr/share/locale/fr/
plasma5-applets-eventcalendar /usr/share/locale/fr/LC_MESSAGES/
plasma5-applets-eventcalendar /usr/share/locale/fr/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.mo
plasma5-applets-eventcalendar /usr/share/locale/nl_NL/
plasma5-applets-eventcalendar /usr/share/locale/nl_NL/LC_MESSAGES/
plasma5-applets-eventcalendar /usr/share/locale/nl_NL/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.mo
plasma5-applets-eventcalendar /usr/share/locale/pl/
plasma5-applets-eventcalendar /usr/share/locale/pl/LC_MESSAGES/
plasma5-applets-eventcalendar /usr/share/locale/pl/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.mo
plasma5-applets-eventcalendar /usr/share/locale/pt_BR/
plasma5-applets-eventcalendar /usr/share/locale/pt_BR/LC_MESSAGES/
plasma5-applets-eventcalendar /usr/share/locale/pt_BR/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.mo
plasma5-applets-eventcalendar /usr/share/locale/ru/
plasma5-applets-eventcalendar /usr/share/locale/ru/LC_MESSAGES/
plasma5-applets-eventcalendar /usr/share/locale/ru/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.mo
plasma5-applets-eventcalendar /usr/share/locale/uk/
plasma5-applets-eventcalendar /usr/share/locale/uk/LC_MESSAGES/
plasma5-applets-eventcalendar /usr/share/locale/uk/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.mo
plasma5-applets-eventcalendar /usr/share/locale/zh_CN/
plasma5-applets-eventcalendar /usr/share/locale/zh_CN/LC_MESSAGES/
plasma5-applets-eventcalendar /usr/share/locale/zh_CN/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.mo
plasma5-applets-eventcalendar /usr/share/plasma/
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/code/
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/code/ColorIdMap.js
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/code/DebugFixtures.js
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/code/OpenWeatherMap.js
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/code/WeatherApi.js
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/code/WeatherCanada.js
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/config/
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/config/config.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/config/main.xml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/fonts/
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/fonts/weathericons-regular-webfont.ttf
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/icons/
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/icons/google_calendar_96px.png
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/icons/hangouts.svg
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/scripts/
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/scripts/icsjson.py
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/AgendaEventItem.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/AgendaListItem.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/AgendaModel.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/AgendaView.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/AppletConfig.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/ClockView.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/DateSelector.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/DayDelegate.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/DaysCalendar.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/EventModel.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/FontIcon.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/LinkRect.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/LinkText.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/LocaleFuncs.js
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/MeteogramView.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/MonthView.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/NewEventForm.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/NotificationManager.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/PopupView.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/Shared.js
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/TimeFormatSizeHelper.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/TimeModel.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/TimerInputView.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/TimerPresetButton.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/TimerTextField.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/TimerView.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/TooltipView.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/UpcomingEvents.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/badges/
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/badges/DotsBadge.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/badges/EventColorsBarBadge.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/badges/EventCountBadge.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/badges/HighlightBarBadge.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/calendars/
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/calendars/CalendarManager.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/calendars/DebugCalendarManager.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/calendars/GoogleCalendarManager.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/calendars/ICalManager.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/calendars/PlasmaCalendarManager.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/ComboBoxProperty.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/ConfigAgenda.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/ConfigCalendar.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/ConfigEvents.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/ConfigGeneral.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/ConfigGoogleCalendar.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/ConfigICal.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/ConfigSerializedString.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/ConfigTimezones.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/ConfigWeather.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/GoogleCalendarSession.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/HeaderText.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/LockIcon.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/OpenWeatherMapCityDialog.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/config/WeatherCanadaCityDialog.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/AppletVersion.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/Base64Json.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/Base64JsonListModel.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/ColorGrid.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/ConfigAdvanced.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/ConfigCheckBox.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/ConfigColor.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/ConfigNotification.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/ConfigPage.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/ConfigSection.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/ConfigSlider.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/ConfigSpinBox.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/ConfigString.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/ContextMenu.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/ExecUtil.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/LabeledRowLayout.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/LocaleInstaller.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/Logger.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/MenuItem.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/MessageWidget.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/lib/Requests.js
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/main.qml
plasma5-applets-eventcalendar /usr/share/plasma/plasmoids/org.kde.plasma.eventcalendar/metadata.desktop
Zren commented 5 years ago

Done in v64

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=plasma5-applets-eventcalendar