aboutsummaryrefslogtreecommitdiffstats
path: root/community/gammu
diff options
context:
space:
mode:
authorScrumpyJack <scrumpyjack@st.ilet.to>2016-08-18 12:58:33 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-18 21:11:39 +0000
commitfad19051951129081c94d9ca641af6bbb1389e20 (patch)
tree4f6fac56923653086b9db2df0052a834b70b6966 /community/gammu
parent5df6fbc76284929c44d2db7db6d12f675a91958c (diff)
downloadaports-fad19051951129081c94d9ca641af6bbb1389e20.tar.bz2
aports-fad19051951129081c94d9ca641af6bbb1389e20.tar.xz
testing/[various]: move to community
Moves the following packages to community after successful build and testing. bogofilter corebird fbpanel hermes libdbi-drivers luufs netsurf opencpn py-sensehat rng-tools volumeicon
Diffstat (limited to 'community/gammu')
-rw-r--r--community/gammu/APKBUILD65
1 files changed, 65 insertions, 0 deletions
diff --git a/community/gammu/APKBUILD b/community/gammu/APKBUILD
new file mode 100644
index 0000000000..ac77fe4615
--- /dev/null
+++ b/community/gammu/APKBUILD
@@ -0,0 +1,65 @@
+# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=gammu
+pkgver=1.33.0
+pkgrel=0
+pkgdesc="Gammu provides an abstraction layer for cell phones access"
+url="http://wammu.eu/"
+arch="all"
+license="GPLv2+"
+depends="dialog bluez"
+depends_dev=""
+makedepends="$depends_dev unixodbc-dev libdbi-dev postgresql-dev
+ bluez-dev mysql-dev libusb-dev curl-dev cmake doxygen linux-headers
+ python2-dev"
+install=""
+subpackages="$pkgname-smsd:_smsd $pkgname-doc $pkgname-dev py-$pkgname:_py
+ $pkgname-libs"
+source="http://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2"
+
+_builddir="${srcdir}/${pkgname}-${pkgver}"
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ cmake . -DBUILD_SHARED_LIBS=ON \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DWITH_NOKIA_SUPPORT=ON \
+ -DWITH_Bluez=ON \
+ -DWITH_IrDA=On \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+_py() {
+ cd "$_builddir"
+ pkgdesc="Python gammu module"
+ mkdir -p "$subpkgdir"/usr/lib/python2.7/site-packages/ || return 1
+ mv "$pkgdir"/usr/lib/python2.7/site-packages/"$pkgname" "$subpkgdir"/usr/lib/python2.7/site-packages/
+}
+
+_smsd() {
+ cd "$_builddir"
+ pkgdesc="Gammu SMS daemon"
+ mkdir -p "$subpkgdir"/usr/bin/ || return 1
+ mv "$pkgdir"/usr/bin/gammu-smsd \
+ "$pkgdir"/usr/bin/gammu-smsd-monitor \
+ "$pkgdir"/usr/bin/gammu-smsd-inject "$subpkgdir"/usr/bin
+}
+
+md5sums="3f46afcc16829175d2d9060ac15813e8 gammu-1.33.0.tar.bz2"
+sha256sums="b326223e36a334dbaed68252a9cf2d90fd898d6de4d1085dcf9c2320881aece3 gammu-1.33.0.tar.bz2"
+sha512sums="42252a36c7ad5a2945fcf23fcb1b5bb0201d27e8830d3b4a7f4c36bf00f12f5a0f7797e17098bda8d526d4ddc3b1808c0786dfae0feef9424516fa68bf2f3f1e gammu-1.33.0.tar.bz2"