summaryrefslogtreecommitdiff
path: root/community/mmsd-tng/APKBUILD
blob: ee63ec4ba19431a4be9da583337ce4436e3b9a59 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
# Contributor: Julian P Samaroo <jpsamaroo@jpsamaroo.me>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=mmsd-tng
pkgver=2.3.0
pkgrel=0
pkgdesc="daemon for receiving and managing GSM MMS messages"
url="https://gitlab.com/kop316/mmsd"
arch="all"
license="GPL-2.0-only"
# upstream was renamed mmsd-->mmsd-tng
provides="mmsd=$pkgver-r$pkgrel"
replaces="mmsd"
depends="mobile-broadband-provider-info"
makedepends="
	c-ares-dev
	dbus-dev
	glib-dev
	json-c-dev
	libphonenumber-dev
	libsoup3-dev
	meson
	modemmanager-dev
	"
source="
	$pkgname-$pkgver.tar.gz::https://gitlab.com/kop316/mmsd/-/archive/$pkgver/mmsd-$pkgver.tar.gz
	mmsd.desktop
	"
subpackages="$pkgname-tools"
builddir="$srcdir/${pkgname%%-tng}-$pkgver"

build() {
	abuild-meson \
		-Db_lto=true \
		-Dbuild-mmsctl=true \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	install -Dm644 "$srcdir"/mmsd.desktop \
		"$pkgdir"/etc/xdg/autostart/mmsd.desktop

	install -Dm755 \
		output/tools/create-hex-array \
		output/tools/decode-mms \
		-t "$pkgdir"/usr/bin/
}

tools() {
	pkgdesc="$pkgdesc (tools)"

	amove usr/bin/create-hex-array
	amove usr/bin/decode-mms
}

sha512sums="
8119fd693553c0debce146ca22ea01af1bef000920a826dbf811fcfe8761ec994d847d66e67a2e10f4978e58f0a6836d090f234cf593b1c48331788eefb57050  mmsd-tng-2.3.0.tar.gz
5d558e14baf0324ba1d7ddd7b89a558cc4570dd44cfba964bddcd03d6e68c514aaf8a25be927ff4e095f6e08b592307ebd333f41c8747ce1a13793420a6086d8  mmsd.desktop
"