# Contributor: Stuart Cardall # Maintainer: Stuart Cardall global pkgname := 'libmbim' global pkgver := '1.14.2' global pkgrel := '0' global pkgdesc := '"MBIM modem protocol helper library'" global url := '"http://www.freedesktop.org/wiki/Software/libmbim'" global arch := '"all'" global license := '"GPL2'" global makedepends := ""$depends_dev gtk-doc python2 glib-dev py-gobject libgudev-dev"" global subpackages := ""$pkgname-dev $pkgname-doc"" global source := ""https://www.freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz"" global builddir := ""$srcdir"/$pkgname-$pkgver" proc build { cd $builddir ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static make } proc check { cd $builddir make check } proc package { cd $builddir make DESTDIR="$pkgdir" install } global sha512sums := '"217af4177602273fc547c2436c26664bafa06ce8fb64aafd4a64448b3e4e2b55ea6b3c7dfc0791bd44d4a211383864c574f53fe916fc8fbbe16c38a7195663dc libmbim-1.14.2.tar.xz'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(libmbim)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(1.14.2)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(0)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("MBIM modem protocol helper library"))} spids: [15] ) ] spids: [15] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://www.freedesktop.org/wiki/Software/libmbim"))} spids: [20] ) ] spids: [20] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (all))} spids:[25])] spids: [25] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (GPL2))} spids:[30])] spids: [30] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: {(DQ ($ VSub_Name "$depends_dev") (" gtk-doc python2 glib-dev py-gobject libgudev-dev"))} spids: [35] ) ] spids: [35] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") ("-dev ") ($ VSub_Name "$pkgname") (-doc))} spids: [41] ) ] spids: [41] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("https://www.freedesktop.org/software/") ($ VSub_Name "$pkgname") (/) ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver") (.tar.xz) ) } spids: [49] ) ] spids: [49] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver")} spids: [60] ) ] spids: [60] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(./configure)} {(--prefix) (Lit_Other "=") (/usr)} {(--sysconfdir) (Lit_Other "=") (/etc)} {(--localstatedir) (Lit_Other "=") (/var)} {(--disable-static)} ) (C {(make)}) ] spids: [74] ) spids: [70 73] ) (FuncDef name: check body: (BraceGroup children: [(C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(make)} {(check)})] spids: [118] ) spids: [114 117] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(make)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(install)}) ] spids: [139] ) spids: [135 138] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "217af4177602273fc547c2436c26664bafa06ce8fb64aafd4a64448b3e4e2b55ea6b3c7dfc0791bd44d4a211383864c574f53fe916fc8fbbe16c38a7195663dc libmbim-1.14.2.tar.xz" ) ) } spids: [161] ) ] spids: [161] ) ] )