summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy2023-09-04 02:02:52 +0700
committerVadim Yanitskiy2023-09-04 02:04:01 +0700
commitd68fb70412e8fcf3196a79c37d447e9c263c26a3 (patch)
tree1ea444fc8f8545425a1af9963cb61cbbc603f322
parentceddaaa6db7c5836f677937a91f53ed60013f6c8 (diff)
downloadaur-d68fb70412e8fcf3196a79c37d447e9c263c26a3.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 7da5647b4678..cfa73070916a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = freecalypso-gsm-codec-lib
pkgdesc = FreeCalypso GSM codec libraries and utilities
pkgver = r2
- pkgrel = 2
+ pkgrel = 3
url = https://www.freecalypso.org/hg/gsm-codec-lib
arch = x86_64
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index f1743800df79..035a9e510565 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_hgname=gsm-codec-lib
pkgname="freecalypso-${_hgname}"
pkgver=r2
-pkgrel=2
+pkgrel=3
pkgdesc="FreeCalypso GSM codec libraries and utilities"
arch=('x86_64' 'i686')
url="https://www.freecalypso.org/hg/${_hgname}"
@@ -36,4 +36,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/"
}