mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-06 14:12:23 +01:00
This commit updates $license variable in all APKBUILDs to comply with short names specified by SPDX version 3.0 [1] where possible. It was done using find-and-replace method on substrings inside $license variables. Only license names were updated, not "expressions" specifying relation between the licenses (e.g. "X and Y", "X or Y", "X and (Y or Z)") or exceptions (e.g. "X with exceptions"). Many licenses have a version or multiple variants, e.g. MPL-2.0, BSD-2-Clause, BSD-3-Clause. However, $license in many aports do not contain license version or variant. Since there's no way how to infer this information just from abuild, it were left without the variant suffix or version, i.e. non SPDX compliant. GNU licenses (AGPL, GFDL, GPL, LGPL) are especially complicated. They exist in two variants: -only (formerly e.g. GPL-2.0) and -or-later (formerly e.g. GPL-2.0+). We did not systematically noted distinguish between these variants, so GPL-2.0, GPL2, GPLv2 etc. may mean GPL-2.0-only or GPL-2.0-or-later. Thus GNU licenses without "+" (e.g. GPL2+) were left without the variant suffix, i.e. non SPDX compliant. Note: This commit just fixes format of the license names, no verification has been done if the specified license information is actually correct! [1]: https://spdx.org/licenses/
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
# Contributor: Oz Tiram <oz.tiram@gmail.com>
|
|
# Maintainer: Oz Tiram <oz.tiram@gmail.com>
|
|
pkgname=libmodbus
|
|
pkgver=3.1.4
|
|
pkgrel=0
|
|
pkgdesc="Modbus library which supports RTU communication over a serial line or a TCP link"
|
|
url="http://libmodbus.org/"
|
|
source="http://libmodbus.org/releases/$pkgname-$pkgver.tar.gz"
|
|
|
|
arch="all"
|
|
license="LGPL-3.0"
|
|
depends=""
|
|
makedepends="linux-headers"
|
|
install=""
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make DESTDIR="$pkgdir" install || return 1
|
|
}
|
|
md5sums="b1a8fd3a40d2db4de51fb0cbcb201806 libmodbus-3.1.4.tar.gz"
|
|
sha256sums="c8c862b0e9a7ba699a49bc98f62bdffdfafd53a5716c0e162696b4bf108d3637 libmodbus-3.1.4.tar.gz"
|
|
sha512sums="63f73894b27704f5e5b3ca0a364cc366c5b5d24903bb24384155890cf06c0f8e5c707a435a38129402ff6628ef3d611dd0db82f840b79cf1d205ebed2ac5681c libmodbus-3.1.4.tar.gz"
|