summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksandr Natalenko2020-10-23 08:58:32 +0200
committerOleksandr Natalenko2020-10-23 08:58:32 +0200
commiteb53c38f5298fc05b21a66736f085b0355c87beb (patch)
treed617d69cc92beeb898c134a521cd8c6409e23880
downloadaur-eb53c38f5298fc05b21a66736f085b0355c87beb.tar.gz
initial commit
Signed-off-by: Oleksandr Natalenko <oleksandr@natalenko.name>
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD25
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3fb8011acb8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = asterisk-codec_opus
+ pkgdesc = Opus Software Codec for Asterisk
+ pkgver = 18.0_1.3.0
+ pkgrel = 1
+ url = https://digium.com
+ arch = x86_64
+ license = EULA
+ depends = asterisk
+ source = https://downloads.digium.com/pub/telephony/codec_opus/asterisk-18.0/x86-64/codec_opus-18.0_1.3.0-x86_64.tar.gz
+ sha256sums = 5f48e535582f6dc0b93ab132421dbbeb72728bfdd3c27359f06363d9327d3835
+
+pkgname = asterisk-codec_opus
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c7ef280be7e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Oleksandr Natalenko <oleksandr@natalenko.name>
+
+_modname=codec_opus
+_modver=1.3.0
+pkgname=asterisk-${_modname}
+_astver=18.0
+pkgver=${_astver}_${_modver}
+pkgrel=1
+pkgdesc="Opus Software Codec for Asterisk"
+url="https://digium.com"
+license=(EULA)
+arch=(x86_64)
+depends=(asterisk)
+source=("https://downloads.digium.com/pub/telephony/codec_opus/asterisk-${_astver}/x86-64/${_modname}-${pkgver}-${arch}.tar.gz")
+sha256sums=('5f48e535582f6dc0b93ab132421dbbeb72728bfdd3c27359f06363d9327d3835')
+
+package() {
+ cd "${_modname}-${pkgver}-${arch}"
+
+ install -Dt "${pkgdir}/usr/lib/asterisk/modules" -m0755 codec_opus.so
+ install -Dt "${pkgdir}/usr/lib/asterisk/modules" -m0755 format_ogg_opus.so
+ install -Dt "${pkgdir}/var/lib/asterisk/documentation/thirdparty" -m0644 codec_opus_config-en_US.xml
+ install -Dt "${pkgdir}/usr/share/licenses/asterisk/modules/${_modname}" -m0644 LICENSE
+ install -Dt "${pkgdir}/usr/share/doc/asterisk/modules/${_modname}" -m0644 README
+}