diff options
author | Vadim Yanitskiy | 2023-09-01 00:27:45 +0700 |
---|---|---|
committer | Vadim Yanitskiy | 2023-09-01 01:28:34 +0700 |
commit | bd66009d88cd5ba902e12bf7176233eb1b3f9dc5 (patch) | |
tree | 938b36d526f12fe58e57a922f20b49ff6f29b8a1 | |
download | aur-bd66009d88cd5ba902e12bf7176233eb1b3f9dc5.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 46 | ||||
-rw-r--r-- | ringtools_imy_fix_tdma_durations.diff | 20 |
3 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e19ec89cb37a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = freecalypso-tools-hg + pkgdesc = FreeCalypso host tools package + pkgver = r963.b515a97e5dff + pkgrel = 1 + url = https://www.freecalypso.org/hg/freecalypso-tools + arch = x86_64 + arch = i686 + groups = freecalypso + license = custom + makedepends = mercurial + source = hg+https://www.freecalypso.org/hg/freecalypso-tools + source = ringtools_imy_fix_tdma_durations.diff + md5sums = SKIP + md5sums = b5080911de58727d42d6c7969f2c1cac + +pkgname = freecalypso-tools-hg diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cad08829b334 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Vadim Yanitskiy <fixeria@osmocom.org> + +_pkgname=freecalypso-tools +pkgname="${_pkgname}-hg" +pkgver=r963.b515a97e5dff +pkgrel=1 +pkgdesc="FreeCalypso host tools package" +arch=('x86_64' 'i686') +url="https://www.freecalypso.org/hg/${_pkgname}" +license=('custom') +groups=('freecalypso') +depends=() +makedepends=('mercurial') +source=("hg+https://www.freecalypso.org/hg/${_pkgname}" + "ringtools_imy_fix_tdma_durations.diff") +md5sums=('SKIP' + 'b5080911de58727d42d6c7969f2c1cac') + +pkgver() { + cd "${_pkgname}" + printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)" +} + +prepare() { + cd "${_pkgname}" + hg import --no-commit "${srcdir}/ringtools_imy_fix_tdma_durations.diff" +} + +build() { + cd "${_pkgname}" + make +} + +package() { + cd "${_pkgname}" + + install -d "${pkgdir}/opt" + install -d "${pkgdir}/usr/share/doc/${_pkgname}" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" + + # DESTDIR is not respected, '/opt/freecalypso' is hard-coded. + # The project's author is strongly against using any other directory. + make install + cp -r /opt/freecalypso "${pkgdir}/opt/" + cp -r doc/* "${pkgdir}/usr/share/doc/${_pkgname}/" +} diff --git a/ringtools_imy_fix_tdma_durations.diff b/ringtools_imy_fix_tdma_durations.diff new file mode 100644 index 000000000000..6f350e06f1c9 --- /dev/null +++ b/ringtools_imy_fix_tdma_durations.diff @@ -0,0 +1,20 @@ +# HG changeset patch +# User Vadim Yanitskiy <fixeria@osmocom.org> +# Date 1693502195 -25200 +# Fri Sep 01 00:16:35 2023 +0700 +# Node ID 33866382d9994e07e7cb6eac65636f7f28e46b97 +# Parent b515a97e5dff252b24c41fecc139f8db19f6a637 +ringtools/imy: fix duplicate definition of tdma_durations + +diff -r b515a97e5dff -r 33866382d999 ringtools/imy/main.c +--- a/ringtools/imy/main.c Mon Aug 28 03:52:53 2023 +0000 ++++ b/ringtools/imy/main.c Fri Sep 01 00:16:35 2023 +0700 +@@ -9,7 +9,7 @@ + char *imy_filename; + char melody_str_buf[MELODY_BUF_SIZE]; + unsigned beats_per_min = 120; +-unsigned tdma_durations[6][4]; ++extern unsigned tdma_durations[6][4]; + FILE *outF; + + main(argc, argv) |