aboutsummaryrefslogblamecommitdiffstats
path: root/community/libgweather/APKBUILD
blob: 08629c5e83643d630b7e5b1a86f5cab239dfbade (plain) (tree)
1
2
3
4
5
6
7
8
9
                                               

                                                    
                   
             
        
                               
                                                 
          


                                                     
                                                           
                                                    
                                                     


                                                                                              

         
               
                               

                                     
                                     
                                


                                    

 
         
                            
 
 
           
                                                 

 





                                                                     

                                                                                                                                                                       
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libgweather
pkgver=3.34.0
pkgrel=2
pkgdesc="GNOME weather library"
url="https://wiki.gnome.org/Projects/LibGWeather"
arch="all"
license="LGPL-2.1-or-later"
depends="tzdata gsettings-desktop-schemas"
makedepends="gtk+3.0-dev libsoup-dev libxml2-dev vala
	glib-dev geocode-glib-dev gobject-introspection-dev
	libxml2-utils gtk-doc glade-dev meson ninja"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/libgweather/${pkgver%.*}/libgweather-$pkgver.tar.xz
	fix-test.patch
	"

build() {
	meson \
		--prefix=/usr \
		--buildtype=release \
		--sysconfdir=/etc \
		--buildtype=release \
		-Dgtk_doc=true \
		-Denable_vala=true \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

dev() {
	default_dev
	mkdir -p "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/share/glade/catalogs "$subpkgdir"/usr/share/
}

sha512sums="44451837039965251d86f6f538c943a771ab1944d9190ddb2c6bdb34b3ed0e33756c537e84f24487fd5f28b107e8d3af05a6c20a68f83734ac26ff69a8bd0aba  libgweather-3.34.0.tar.xz
ad9e4bf0d7cc12dfab6ed2870c4f7d52f78b04eaa3cd440f8f85da67106060854364f213d2052ce77158ac2e54be9e33a206bf1dfb634a9bdc17d98505588de7  fix-test.patch"