aboutsummaryrefslogblamecommitdiffstats
path: root/community/glade/APKBUILD
blob: 560992da9b052008ffb3104ac6d487e9ed6df578 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                    
             
             
        
                                                    
                              
          
                          
                                                             
                                                        
                    









                                                       

                                                                                                      
                                                     
                                                                                   
 
 
         


                                
                                                   

 
         
                                                     

 
           
                                                              

 



                                                                          
                                                             

 
                                                                                                                                                                  
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=glade
pkgver=3.38.2
pkgrel=2
pkgdesc="User Interface Designer for GTK+ and GNOME"
url="https://glade.gnome.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="gtk+3.0-dev libxml2-dev itstool gtk-doc intltool
	py3-gobject3-dev gobject-introspection-dev meson
	python3-dev"
case "$CARCH" in
	mips64|riscv64) ;;
	*) makedepends="$makedepends webkit2gtk-dev" ;;
esac

case "$CARCH" in
	s390x|mips64|riscv64) ;;
	*) makedepends="$makedepends gjs-dev" ;;
esac

checkdepends="xvfb-run ibus adwaita-icon-theme"
options="!check" # If adwaita-icon-theme wasn't installed e before we'd have to updathe the icon cache
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/glade/${pkgver%.*}/glade-$pkgver.tar.xz"


build() {
	abuild-meson \
		-Dgladeui=true \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	xvfb-run meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

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

sha512sums="2df8c8363206905663cd3ac9196da44445425a888b64f1b3b3ac6cd41e14c4a82a5d2c299730ef0606c3970a04dd8f245bb5639218794eb67dcbd26fae17565e  glade-3.38.2.tar.xz"