Package Details: aptdec-git r212.4d4a0c9-1

Git Clone URL: https://aur.archlinux.org/aptdec-git.git (read-only, click to copy)
Package Base: aptdec-git
Description: NOAA APT satellite imagery decoder
Upstream URL: https://github.com/Xerbo/aptdec
Keywords: apt noaa radio satellite
Licenses: GPL2
Conflicts: aptdec
Provides: aptdec
Submitter: shuyuan-liu
Maintainer: xiretza
Last Packager: xiretza
Votes: 3
Popularity: 0.000114
First Submitted: 2021-04-07 12:56 (UTC)
Last Updated: 2022-11-16 20:45 (UTC)

Dependencies (4)

Required by (2)

Sources (2)

Latest Comments

1 2 Next › Last »

phantome commented on 2025-04-16 11:06 (UTC)

Wont build because of an update in CMake. You need to add some stuff in prepare, posting a PKGBUILD that works (but really upstream must sort it out):


# Maintainer: xiretza <xiretza+aur@xiretza.xyz>
# Contributor: Shuyuan Liu (AUR)

pkgname=aptdec-git
pkgver=r219.7db2030
pkgrel=1
pkgdesc='NOAA APT satellite imagery decoder'
arch=('x86_64' 'arm' 'aarch64')
url="https://github.com/Xerbo/aptdec"
license=('GPL2')
depends=('libsndfile' 'libpng')
makedepends=('git' 'cmake')
provides=('aptdec')
conflicts=('aptdec')
source=(
        "git+$url"
        "git+https://github.com/cofyc/argparse"
)
sha256sums=('SKIP'
            'SKIP')

pkgver() {
        cd aptdec
        printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd argparse
    sed -i 's/cmake_minimum_required(VERSION 3.0)/cmake_minimum_required(VERSION 3.5)/' CMakeLists.txt
    cd ..
    cd aptdec
    sed -i 's/cmake_minimum_required (VERSION 3.0.0)/cmake_minimum_required(VERSION 3.5)/' CMakeLists.txt

    git submodule init
    git config submodule.src/argparse.url "$srcdir/argparse"
    git -c protocol.file.allow=always submodule update
}

build() {
        cmake -B build -S aptdec \
                -DCMAKE_BUILD_TYPE=None \
                -DCMAKE_INSTALL_PREFIX='/usr'
        make -C build
}

package() {
        make -C build DESTDIR="$pkgdir/" install
}

# vim: set et ts=4:

xiretza commented on 2022-11-16 20:45 (UTC)

Thanks, fixed.

ra1nb0w commented on 2022-11-16 07:04 (UTC)

To avoid error transport 'file' not allowed

diff --git a/PKGBUILD b/PKGBUILD
index 2ad2f6b..8769320 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
 # Contributor: Shuyuan Liu (AUR)

 pkgname=aptdec-git
-pkgver=r200.be640ff
+pkgver=r212.4d4a0c9
 pkgrel=1
 pkgdesc='NOAA APT satellite imagery decoder'
 arch=('x86_64' 'arm' 'aarch64')
@@ -29,7 +29,7 @@ prepare() {

     git submodule init
     git config submodule.src/argparse.url "$srcdir/argparse"
-    git submodule update
+    git -c protocol.file.allow=always submodule update
 }

 build() {

df8oe commented on 2022-07-19 10:23 (UTC)

So it is :) Many thanks for your lightning-speed work!

xiretza commented on 2022-07-19 08:40 (UTC)

Should be fixed.

df8oe commented on 2022-07-19 08:25 (UTC)

Does no longer build:
CMake Error at CMakeLists.txt:28 (add_executable):
Cannot find source file:

src/argparse/argparse.c

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
.hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc

CMake Error at CMakeLists.txt:28 (add_executable):
No SOURCES given to target: aptdec

xiretza commented on 2022-05-18 19:33 (UTC)

Please review the CMake package guidelines. Specifically, build() should use -DCMAKE_BUILD_TYPE=None. Setting it to Release currently causes build failures because upstream sets -Werror in that case.

joshuarubin commented on 2021-07-01 15:58 (UTC)

Worked great, thanks!

shuyuan-liu commented on 2021-07-01 02:08 (UTC)

@joshuarubin I implemented a temporary fix and initialized the array 'A' to all zeros; seems to be working fine for now. Could you try and see if it builds for you now?

shuyuan-liu commented on 2021-06-29 01:26 (UTC)

@joshuarubin I managed to reproduce the error with gcc 11.1.0; clang 12.0.0 compiles without problems. Will report upstream.