aboutsummaryrefslogtreecommitdiffstats
path: root/community/gammu/APKBUILD
blob: 7bcb423e15737af137a01899866edf8052d53c7d (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
51
52
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=gammu
pkgver=1.42.0
pkgrel=0
pkgdesc="Gammu provides an abstraction layer for cell phones access"
options="!check" # 466 - test_sql_time (Failed)
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/gammu/releases/gammu-$pkgver.tar.bz2
	include-sys-select-h.patch
	"

build() {
	cmake -B build . \
		-DCMAKE_BUILD_TYPE=None \
		-DBUILD_SHARED_LIBS=ON \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DWITH_NOKIA_SUPPORT=ON \
		-DWITH_BLUETOOTH=ON \
		-DWITH_IRDA=ON \
		-DLIBINTL_LIBRARIES=intl
	make -C build
}

check() {
	make -C build test
}

package() {
	make -C build 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="f440df357578ce7f5ddd17f2f0f6405b4dacbca3e5da65a469f3f1e92c71bf899a7ef0977438c803ed9b1d7d15324d4a43bd9d97d986119a522243e2e6304971  gammu-1.42.0.tar.bz2
bcdbfa620dff24a01033bb670ec4dabae4c691224693d21105c6ca3cd30022b5825ad0669fd6325553b084d90bbde164113b08de7d102c7401d84076b9a59083  include-sys-select-h.patch"