summaryrefslogblamecommitdiff
path: root/user/gobject-introspection/APKBUILD
blob: f61e5bfc2ce03d525999a5aedefad553a831cf23 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                             
                             
             
        
                                                          
                                                                      

                                        
          
                                       

                                                                                


                                       
                                                                                         
 
         

                                 


         
                           


           
                                                










                                                                        
                                                                                                                                                                                  
# Maintainer: Nathan <ndowens@artixlinux.org>
pkgname=gobject-introspection
pkgver=1.66.1
pkgrel=0
pkgdesc="Introspection system for GObject-based libraries"
url="https://wiki.gnome.org/action/show/Projects/GObjectIntrospection"
arch="all"
license="LGPL-2.0+ AND GPL-2.0+ AND MIT"
depends=""
depends_dev="python3 cairo-dev libtool"
makedepends="$depends_dev bison flex glib-dev libffi-dev meson ninja python3-dev
	cmd:which"
checkdepends="sed"
subpackages="$pkgname-doc $pkgname-dev"
replaces="libgirepository"
source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz"

build() {
	meson -Dprefix=/usr build
	ninja -C build
}

check() {
	ninja -C build test
}

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

dev() {
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/share "$subpkgdir"/usr/
	mv "$pkgdir"/usr/lib/gobject-introspection "$subpkgdir"/usr/lib/
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
	default_dev
	replaces="gobject-introspection"
}

sha512sums="ea1e20cd94ff8af3572f417f35e96648ffc3e94a91d4e4c81adf99bb0f408ac21ecf40990f9dbd5f2e0f4e83360286ca5db88dbc45bd59289596a324acf7df3d  gobject-introspection-1.66.1.tar.xz"