# Maintainer: Natanael Copa setglobal pkgname = 'obexftp' setglobal pkgver = '0.23' setglobal pkgrel = '4' setglobal pkgdesc = '"A tool for transfer files to/from any OBEX enabled device'" setglobal url = '"http://openobex.triq.net/obexftp/obexftp'" setglobal arch = '"all'" setglobal license = '"GPL'" setglobal depends = '' setglobal makedepends = '"pkgconfig openobex-dev bluez-dev python-dev'" setglobal subpackages = ""$pkgname-dev $pkgname-doc $pkgname-libs py-$pkgname:py"" setglobal source = ""http://downloads.sourceforge.net/sourceforge/openobex/obexftp-$pkgver.tar.bz2 obexftp-0.23-gentoo.patch"" setglobal _builddir = ""$srcdir"/$pkgname-$pkgver" proc prepare { cd $_builddir for i in [$source] { match $i { with *.patch msg "Applying $i" patch -p1 -i "$srcdir"/$i || return 1 } } } proc build { cd $_builddir ./configure --prefix=/usr \ --enable-bluetooth \ --disable-perl \ --enable-python \ --disable-ruby || return 1 make || return 1 } proc package { cd $_builddir make DESTDIR="$pkgdir" install || return 1 } proc libs { setglobal pkgdesc = '"OBEX shared library'" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/lib*.so.* "$subpkgdir"/usr/lib } proc py { setglobal pkgdesc = '"Python library to access devices via the OBEX protocol'" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ } setglobal md5sums = '"f20762061b68bc921e80be4aebc349eb obexftp-0.23.tar.bz2 90b4fadb913673c339bbd04cebc4f9d2 obexftp-0.23-gentoo.patch'"