# Maintainer: Mu-Wetter Developer <root@puppy>
pkgname=mu-wetter
pkgver=1.1.0
pkgrel=1
pkgdesc="International Weather Station for Linux (including Manjaro/Arch Plasma) and Puppy Linux"
arch=('x86_64' 'i686')
url="https://schinkenpizza.de/muwetter"
license=('GPL')
depends=('gtk3' 'libsoup3' 'json-glib')
makedepends=('valac' 'make' 'gcc' 'pkgconf')
source=("$pkgname-$pkgver-source.tar.gz")
sha256sums=('SKIP')

build() {
    cd "$pkgname-$pkgver-source"
    make
}

package() {
    cd "$pkgname-$pkgver-source"
    install -Dm755 mu-wetter "$pkgdir/usr/bin/mu-wetter"
    install -Dm644 mu-wetter.desktop "$pkgdir/usr/share/applications/mu-wetter.desktop"
    install -Dm644 languages.rc "$pkgdir/etc/mu-wetter/languages.rc"
    install -Dm644 proxyinfo.txt "$pkgdir/etc/mu-wetter/proxyinfo.txt"
    install -Dm644 proxyinfo_ru.txt "$pkgdir/etc/mu-wetter/proxyinfo_ru.txt"
}
