Package Details: libdecsync-bin 2.2.1-3

Git Clone URL: https://aur.archlinux.org/libdecsync-bin.git (read-only, click to copy)
Package Base: libdecsync-bin
Description: libdecsync is a multiplatform library for synchronizing using DecSync.
Upstream URL: https://github.com/39aldo39/libdecsync
Licenses: custom:LGPL2
Provides: libdecsync
Submitter: chroma
Maintainer: chroma
Last Packager: chroma
Votes: 0
Popularity: 0.000000
First Submitted: 2022-02-10 08:28 (UTC)
Last Updated: 2022-02-10 09:19 (UTC)

Latest Comments

BrainDamage commented on 2022-07-12 09:34 (UTC) (edited on 2022-07-12 09:35 (UTC) by BrainDamage)

This package has multiple mistakes:

  • It advertises multiple architectures when in reality supports only one
  • It uses the arm library for x86 architecture
  • It uses the latest development version of a repository despite not having -git suffix
  • It doesn't conflict with libdesync package, so if one attemps to install the -bin over the normal one, pacman will proceed the preliminary checks only to fail due to file name conflict
  • It marks the LGPL license as custom, despite being available in the licenses package

I've tried to fix those errors, and attached there is an updated pkgbuild.

It should reduce maintenance on your side as well, since a new update will just have to bump pkgver and run updpkgsums to upgrade all the hashes at once.

pkgname=libdecsync-bin
pkgver=2.2.1
pkgrel=4
pkgdesc='libdecsync is a multiplatform library for synchronizing using DecSync.'
arch=(x86_64 aarch64 armv7h)
url='https://github.com/39aldo39/libdecsync'
license=('LGPL')
depends=(gcc-libs)  # libdecsync.so depends on libgcc_s.so.1
provides=(libdecsync)
conflicts=(libdecsync)

source_x86_64=("https://github.com/39aldo39/libdecsync/releases/download/v${pkgver}/libdecsync_amd64.so")
source_armv7h=("https://github.com/39aldo39/libdecsync/releases/download/v${pkgver}/libdecsync_arm32.so")
source_aarch64=("https://github.com/39aldo39/libdecsync/releases/download/v${pkgver}/libdecsync_arm64.so")

sha256sums_x86_64=('14ccf7505ecf0161740fc0a6df8a08300c745d95ffee070564b96dfec10bbb3e')
sha256sums_aarch64=('e8bb54ca7086d3d1d79b9987b904b34a6f4db3c9353b066f102f90cfffd5ab9b')
sha256sums_armv7h=('dd38de69752357a95bf20de94d2e6bbfdb19c30fba98a27bd05128b9f6493c8c')

package() {
    find "${srcdir}" -name '*.so' -exec install -Dm644 {} "${pkgdir}/usr/lib/libdecsync.so" \;
}