aboutsummaryrefslogtreecommitdiffstats
path: root/community/gammu/APKBUILD
blob: 3b4d0c4b42524c5b4ab542e6658a262ba0c1016f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=gammu
pkgver=1.40.0
pkgrel=0
pkgdesc="Gammu provides an abstraction layer for cell phones access"
url="https://wammu.eu/"
arch="all"
license="GPL-2.0-or-later"
depends="bluez dialog"
makedepends="bluez-dev cmake curl-dev doxygen gettext-dev libdbi-dev libintl
	libusb-dev linux-headers mysql-dev postgresql-dev unixodbc-dev"
subpackages="$pkgname-smsd:_smsd $pkgname-doc $pkgname-dev
	$pkgname-libs $pkgname-lang"
source="https://dl.cihar.com/$pkgname/releases/${pkgname}-${pkgver}.tar.bz2
	include-sys-select-h.patch
	"

build() {
	cmake . -DBUILD_SHARED_LIBS=ON \
		-DCMAKE_INSTALL_PREFIX="/usr" \
		-DWITH_NOKIA_SUPPORT=ON \
		-DWITH_BLUETOOTH=ON \
		-DWITH_IRDA=ON \
		-DLIBINTL_INCLUDE_DIRS:PATH=$(INTL_PREFIX)/include \
		-DLIBINTL_LIBRARIES:STRING=intl
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
}

_smsd() {
	pkgdesc="Gammu SMS daemon"

	cd "$builddir"
	mkdir -p "$subpkgdir"/usr/bin/
	mv "$pkgdir"/usr/bin/gammu-smsd \
	   "$pkgdir"/usr/bin/gammu-smsd-monitor \
	   "$pkgdir"/usr/bin/gammu-smsd-inject "$subpkgdir"/usr/bin
}

sha512sums="6dbab68f30567a501487cf4edf19e23b7b23b7b78e3dfff69fc8d3c95b62f74ee14fe25ca380eac071e67f1a523dfd69cb9137fe049bf6477dfcc94930b71ce9  gammu-1.40.0.tar.bz2
bcdbfa620dff24a01033bb670ec4dabae4c691224693d21105c6ca3cd30022b5825ad0669fd6325553b084d90bbde164113b08de7d102c7401d84076b9a59083  include-sys-select-h.patch"