2017-04-10 17:34:09 +02:00
|
|
|
# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
|
|
|
|
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
|
|
|
|
pkgname=apt-dater
|
2020-02-29 10:15:40 -03:00
|
|
|
pkgver=1.0.4
|
2024-10-01 03:50:52 +00:00
|
|
|
pkgrel=4
|
2017-04-10 17:34:09 +02:00
|
|
|
pkgdesc="terminal-based remote package update manager"
|
2017-08-06 11:37:24 +02:00
|
|
|
url="https://github.com/DE-IBH/apt-dater"
|
2017-04-10 17:34:09 +02:00
|
|
|
arch="all"
|
[various]: unify names of licenses according to SPDX
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/
2017-12-30 19:04:30 +01:00
|
|
|
license="GPL-2.0-or-later"
|
2022-08-05 12:13:00 +02:00
|
|
|
depends="lockfile-progs screen openssh-client util-linux-misc"
|
2024-10-01 03:50:52 +00:00
|
|
|
makedepends="autoconf automake popt-dev glib-dev ncurses-dev tcl-dev libconfig-dev libxml2-dev
|
2020-02-29 10:15:40 -03:00
|
|
|
xxd"
|
2017-04-10 17:34:09 +02:00
|
|
|
subpackages="$pkgname-doc $pkgname-lang"
|
|
|
|
source="apt-dater-$pkgver.tar.gz::https://github.com/DE-IBH/apt-dater/archive/v$pkgver.tar.gz
|
|
|
|
apt-dater-fix-includes.patch
|
2024-10-01 03:50:52 +00:00
|
|
|
fix-gnu-source-warning.patch
|
|
|
|
gcc14.patch
|
2020-02-29 10:15:40 -03:00
|
|
|
"
|
2017-04-10 17:34:09 +02:00
|
|
|
|
2024-10-01 03:50:52 +00:00
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
2017-04-10 17:34:09 +02:00
|
|
|
build() {
|
|
|
|
./configure \
|
|
|
|
--build=$CBUILD \
|
|
|
|
--host=$CHOST \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--enable-tclfilter \
|
|
|
|
--enable-xmlreport \
|
|
|
|
--enable-autoref \
|
|
|
|
--enable-history \
|
|
|
|
--enable-debug
|
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
HOME="$builddir" ./src/apt-dater -v
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-05-20 13:03:43 +02:00
|
|
|
# sane permissions of top level directories
|
|
|
|
for _d in etc var/cache var/lib; do
|
|
|
|
mkdir -p "$pkgdir/$_d"
|
|
|
|
done
|
2017-04-10 17:34:09 +02:00
|
|
|
make -j1 DESTDIR="$pkgdir" install
|
|
|
|
rm -f "$pkgdir"/usr/share/man/man1/apt-dater-host.1
|
|
|
|
}
|
|
|
|
|
2024-10-01 03:50:52 +00:00
|
|
|
sha512sums="
|
|
|
|
6b4c3fe555d5b1ecdab63ff0f05713657cd0a0ac89fa114b4d23a95059fc1b91159cae180afeea3d58ef476629566c495e35f126ce19c3922c2896f8c1790020 apt-dater-1.0.4.tar.gz
|
|
|
|
562631999cbcf0dcfeb987705c3ec66b274b0f6914527229adbe9281b2a791f601052ed51dff9004220c376b3de9e3da812e0961b3e999174c9c4fb75593499c apt-dater-fix-includes.patch
|
|
|
|
f59ebeee3cff9eee2b024b96c7267ce40b5d6a9b53fec4fac3b5e233c92f616db2105af2e46783cd9bcf4364ad78cc152e74dcabd167b0b691f3dfec180c55e9 fix-gnu-source-warning.patch
|
|
|
|
4844996d46d1af2c5b0c17bc7acaf34318126e37324747ffca52a261055050bb857ff1c4d76fa25b62f9ecb97a3edae456eb8bb16e5e2ada2bd8be04a76de7e0 gcc14.patch
|
|
|
|
"
|