summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy2023-09-04 02:05:40 +0700
committerVadim Yanitskiy2023-09-04 02:05:40 +0700
commit59366270d64022529ce42104ca1322a97aa3f132 (patch)
tree43d59900c0dec416831c4e72a62c431b7a37bf12
parent53f66571b250c86e9e4ad51358c0c8cd63de47f3 (diff)
downloadaur-59366270d64022529ce42104ca1322a97aa3f132.tar.gz
package(): install header files to '/usr/include/gsm/'
https://www.freecalypso.org/pipermail/community/2023-September/000892.html https://www.freecalypso.org/pipermail/community/2023-September/000895.html
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 9 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9e3e1161d05f..4e2179fc54f6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = freecalypso-gsm-codec-lib-hg
pkgdesc = FreeCalypso GSM codec libraries and utilities
pkgver = r251.946849291027
- pkgrel = 1
+ pkgrel = 2
url = https://www.freecalypso.org/hg/gsm-codec-lib
arch = x86_64
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 31c34a2aa1d1..ce85f59f1967 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ _hgname=gsm-codec-lib
_pkgname=freecalypso-gsm-codec-lib
pkgname="${_pkgname}-hg"
pkgver=r251.946849291027
-pkgrel=1
+pkgrel=2
pkgdesc="FreeCalypso GSM codec libraries and utilities"
arch=('x86_64' 'i686')
url="https://www.freecalypso.org/hg/${_hgname}"
@@ -41,4 +41,11 @@ package() {
# DESTDIR is not respected, use INSTALL_PREFIX and INSTBIN instead
make INSTALL_PREFIX="${pkgdir}/usr" install-lib
make INSTBIN="${pkgdir}/opt/freecalypso/bin" install-utils
+
+ # For the sake of consistency with the 'gsm' package, move all header files
+ # to '/usr/include/gsm'. This problem was discussed here:
+ # https://www.freecalypso.org/pipermail/community/2023-September/000892.html
+ # https://www.freecalypso.org/pipermail/community/2023-September/000895.html
+ install -d "${pkgdir}/usr/include/gsm"
+ mv ${pkgdir}/usr/include/*.h "${pkgdir}/usr/include/gsm/"
}