blob: bdc96a1a09c94a9b2dc2621f108535cff663b66d (
plain)
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
|
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=gammu
pkgver=1.39.0
pkgrel=1
pkgdesc="Gammu provides an abstraction layer for cell phones access"
url="https://wammu.eu/"
arch="all"
license="GPL-2.0-or-later"
depends="dialog bluez"
makedepends="unixodbc-dev libdbi-dev postgresql-dev
bluez-dev mysql-dev libusb-dev curl-dev cmake doxygen linux-headers"
subpackages="$pkgname-smsd:_smsd $pkgname-doc $pkgname-dev $pkgname-libs"
source="https://dl.cihar.com/$pkgname/releases/${pkgname}-${pkgver}.tar.bz2
disable-at-charset-test.patch
"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
cmake . -DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DWITH_NOKIA_SUPPORT=ON \
-DWITH_BLUETOOTH=ON \
-DWITH_IRDA=ON
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
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="ed8994f6ec25d8ddbed23680e8a02db05c8e7f85aa6b8c0d409b5e8377e7c9e07fc61e62d80f6741d648709fb58a10ec631155d8b1ffc1c7d3b6e425cf53c797 gammu-1.39.0.tar.bz2
3963da83e7bf9138f676242d0b7fe8ce3c8da7fe34d7ac12b6d439c48d2754e55c2b5442b7773f58fdcf16aa23872c58426fbb079cecc59ba143055cda543fa4 disable-at-charset-test.patch"
|