47 lines
1.2 KiB
Plaintext
47 lines
1.2 KiB
Plaintext
# Maintainer: Alexander Zhirov <alexander@zhirov.kz>
|
|
pkgname=tg2sip
|
|
pkgver=1.3.0
|
|
pkgrel=0
|
|
pkgdesc="TG2SIP is a Telegram<->SIP voice gateway"
|
|
url="https://github.com/Infactum/tg2sip"
|
|
arch="all"
|
|
license="GPL-2.0"
|
|
options="!check !dbg"
|
|
makedepends="
|
|
cmake
|
|
openssl-dev
|
|
zlib-dev
|
|
gperf
|
|
linux-headers
|
|
opus-dev
|
|
pjproject-dev
|
|
spdlog-dev
|
|
telegram-tdlib-dev
|
|
telegram-tdlib-static
|
|
fmt-dev
|
|
webrtc-audio-processing-dev
|
|
"
|
|
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/Infactum/tg2sip/archive/v$pkgver.tar.gz
|
|
alpine.patch
|
|
"
|
|
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
build() {
|
|
cmake -B build
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
install -Dpm0755 "$builddir"/build/tg2sip "$pkgdir"/usr/bin/tg2sip
|
|
install -Dpm0755 "$builddir"/build/gen_db "$pkgdir"/usr/bin/gen_db
|
|
install -Dpm0644 "$builddir"/build/settings.ini "$pkgdir"/etc/"$pkgname"/settings.ini
|
|
}
|
|
|
|
sha512sums="
|
|
2949917f2432974ed04b6f3d50f9ba70a843f4a4e81d3860e7a355f26f8d342eae9434c0be8c7820508b821485f30a13192dcdad80445f60d45f1be8172f7245 $pkgname-$pkgver.tar.gz
|
|
ad18f74086876e00ad1a8e075512475c4cdafb071079c457d9a18ea2a2faad328d1d60f0d1cfa1536dc6e1f223be01ab5157062719dca3175e45411914574893 alpine.patch
|
|
"
|