blob: d7a03febe64d24389b6a074cbfedc1bf19929021 (
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.38.5
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="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="89a6b3872dfd9b4ebaf8b0f51265fec7e7ef72a42178f85846c7f52d926e96b3087bbe6650c4246e66c2624822021c5803b1bb6ca8ac90f3e5c109a644c0ee80 gammu-1.38.5.tar.bz2
3963da83e7bf9138f676242d0b7fe8ce3c8da7fe34d7ac12b6d439c48d2754e55c2b5442b7773f58fdcf16aa23872c58426fbb079cecc59ba143055cda543fa4 disable-at-charset-test.patch"
|