summaryrefslogtreecommitdiffstats
path: root/testing/obexftp/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-09-24 13:44:26 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-09-24 13:44:26 +0000
commit04a99e6c78ff37cc52a4d1029b2a63be4efa8760 (patch)
treec55d2729a690ce435eac506734782e0dcfb9eb13 /testing/obexftp/APKBUILD
parent3691f9a90c57dc73a15860259b88d6a8dd8d87b1 (diff)
downloadaports-04a99e6c78ff37cc52a4d1029b2a63be4efa8760.tar.bz2
aports-04a99e6c78ff37cc52a4d1029b2a63be4efa8760.tar.xz
testing/obexftp: new aport
A tool for transfer files to/from any OBEX enabled device http://openobex.triq.net/obexftp/obexftp
Diffstat (limited to 'testing/obexftp/APKBUILD')
-rw-r--r--testing/obexftp/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/obexftp/APKBUILD b/testing/obexftp/APKBUILD
new file mode 100644
index 000000000..653906b3b
--- /dev/null
+++ b/testing/obexftp/APKBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=obexftp
+pkgver=0.23
+pkgrel=0
+pkgdesc="A tool for transfer files to/from any OBEX enabled device"
+url="http://openobex.triq.net/obexftp/obexftp"
+license="GPL"
+depends=
+makedepends="pkgconfig openobex-dev"
+subpackages="$pkgname-dev $pkgname-doc libobexftp"
+source="http://downloads.sourceforge.net/sourceforge/openobex/obexftp-$pkgver.tar.bz2
+ obexftp-0.23-gentoo.patch"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case "$i" in
+ *.patch)
+ msg "Applying $i"
+ patch -p1 -i "$srcdir"/$i || return 1
+ ;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --disable-perl \
+ --disable-python \
+ --disable-ruby || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+libobexftp() {
+ pkgdesc="OBEX shared library"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/lib*.so.* "$subpkgdir"/usr/lib
+}
+
+md5sums="f20762061b68bc921e80be4aebc349eb obexftp-0.23.tar.bz2
+90b4fadb913673c339bbd04cebc4f9d2 obexftp-0.23-gentoo.patch"