Merge pull request #81176 from clkamp/aqbanking-6.1.1
Update Aqbanking to 6.1.1
This commit is contained in:
commit
1161c96a20
@ -8,16 +8,16 @@ in stdenv.mkDerivation rec {
|
|||||||
pname = "aqbanking";
|
pname = "aqbanking";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
src = let
|
src = fetchurl {
|
||||||
qstring = "package=03&release=${releaseId}&file=02";
|
url = "https://www.aquamaniac.de/rdm/attachments/download/${releaseId}/${pname}-${version}.tar.gz";
|
||||||
mkURLs = map (base: "${base}/sites/download/download.php?${qstring}");
|
|
||||||
in fetchurl {
|
|
||||||
name = "${pname}-${version}.tar.gz";
|
|
||||||
urls = mkURLs [ "http://www.aquamaniac.de" "http://www2.aquamaniac.de" ];
|
|
||||||
inherit sha256;
|
inherit sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Set the include dir explicitly, this fixes a build error when building
|
||||||
|
# kmymoney because otherwise the includedir is overwritten by gwenhywfar's
|
||||||
|
# cmake file
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
sed -i '/^set_and_check(AQBANKING_INCLUDE_DIRS "@aqbanking_headerdir@")/i set_and_check(includedir "@includedir@")' aqbanking-config.cmake.in
|
||||||
sed -i -e '/^aqbanking_plugindir=/ {
|
sed -i -e '/^aqbanking_plugindir=/ {
|
||||||
c aqbanking_plugindir="\''${libdir}/gwenhywfar/plugins"
|
c aqbanking_plugindir="\''${libdir}/gwenhywfar/plugins"
|
||||||
}' configure
|
}' configure
|
||||||
@ -27,8 +27,6 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig gettext ];
|
nativeBuildInputs = [ pkgconfig gettext ];
|
||||||
|
|
||||||
configureFlags = [ "--with-gwen-dir=${gwenhywfar}" ];
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "An interface to banking tasks, file formats and country information";
|
description = "An interface to banking tasks, file formats and country information";
|
||||||
homepage = http://www2.aquamaniac.de/sites/download/packages.php?package=03&showall=1;
|
homepage = http://www2.aquamaniac.de/sites/download/packages.php?package=03&showall=1;
|
||||||
|
@ -16,12 +16,8 @@ in stdenv.mkDerivation rec {
|
|||||||
pname = "gwenhywfar";
|
pname = "gwenhywfar";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
src = let
|
src = fetchurl {
|
||||||
qstring = "package=01&release=${releaseId}&file=02";
|
url = "https://www.aquamaniac.de/rdm/attachments/download/${releaseId}/${pname}-${version}.tar.gz";
|
||||||
mkURLs = map (base: "${base}/sites/download/download.php?${qstring}");
|
|
||||||
in fetchurl {
|
|
||||||
name = "${pname}-${version}.tar.gz";
|
|
||||||
urls = mkURLs [ "http://www.aquamaniac.de" "http://www2.aquamaniac.de" ];
|
|
||||||
inherit sha256;
|
inherit sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -6,12 +6,8 @@ in stdenv.mkDerivation rec {
|
|||||||
pname = "libchipcard";
|
pname = "libchipcard";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
src = let
|
src = fetchurl {
|
||||||
qstring = "package=02&release=${releaseId}&file=01";
|
url = "https://www.aquamaniac.de/rdm/attachments/download/${releaseId}/${pname}-${version}.tar.gz";
|
||||||
mkURLs = map (base: "${base}/sites/download/download.php?${qstring}");
|
|
||||||
in fetchurl {
|
|
||||||
name = "${pname}-${version}.tar.gz";
|
|
||||||
urls = mkURLs [ "http://www.aquamaniac.de" "http://www2.aquamaniac.de" ];
|
|
||||||
inherit sha256;
|
inherit sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
# This file is autogenerated from update.sh in the same directory.
|
|
||||||
{
|
{
|
||||||
gwenhywfar.version = "4.20.0";
|
gwenhywfar.version = "5.1.3";
|
||||||
gwenhywfar.sha256 = "1c0g3f8jk6j693774ifslx2ds4ksabgbbalhhm9gk20kpamxm22s";
|
gwenhywfar.sha256 = "0xjr9d94y46h7pfdhz5ygn01pmlm66rhiybr520h13nvjh4zid0r";
|
||||||
gwenhywfar.releaseId = "208";
|
gwenhywfar.releaseId = "242";
|
||||||
libchipcard.version = "5.0.4";
|
libchipcard.version = "5.0.4";
|
||||||
libchipcard.sha256 = "0fj2h39ll4kiv28ch8qgzdbdbnzs8gl812qnm660bw89rynpjnnj";
|
libchipcard.sha256 = "0fj2h39ll4kiv28ch8qgzdbdbnzs8gl812qnm660bw89rynpjnnj";
|
||||||
libchipcard.releaseId = "200";
|
libchipcard.releaseId = "158";
|
||||||
aqbanking.version = "5.7.8";
|
aqbanking.version = "6.0.2";
|
||||||
aqbanking.sha256 = "0s67mysskbiw1h1p0np4ph4351r7wq3nc873vylam7lsqi66xy0n";
|
aqbanking.sha256 = "0n41n3yki1wmax4i9wi485g8zqb43z1adywcixzfq9gbdjhz05hx";
|
||||||
aqbanking.releaseId = "217";
|
aqbanking.releaseId = "243";
|
||||||
}
|
}
|
||||||
|
@ -1,92 +0,0 @@
|
|||||||
#!/bin/sh -e
|
|
||||||
basedir="$(cd "$(dirname "$0")" && pwd)"
|
|
||||||
|
|
||||||
getCurrentVersions() {
|
|
||||||
[ -e "$basedir/sources.nix" ] || return 0
|
|
||||||
(cd "$basedir" && nix-instantiate --eval --strict -E '
|
|
||||||
toString ((import ../../../../lib).mapAttrsToList
|
|
||||||
(name: info: "${name}:${info.version}!${info.sha256}!${info.releaseId}")
|
|
||||||
(import ./sources.nix))
|
|
||||||
' | tr -d '"')
|
|
||||||
}
|
|
||||||
|
|
||||||
currentVersions="$(getCurrentVersions)"
|
|
||||||
|
|
||||||
getLastestVersion() {
|
|
||||||
local baseurl="https://www.aquamaniac.de"
|
|
||||||
local pkglist="sites/download/packages.php?package=$1&showall=1"
|
|
||||||
local url="$baseurl/$pkglist"
|
|
||||||
local reVersion='[0-9]+(\.[0-9]+)+' # Only release versions, no betas!
|
|
||||||
local reHref='href=".*release=([0-9]+).*dummy=[^0-9]*('"$reVersion"')\.tar'
|
|
||||||
local reFull='s/^.*<a\>.*\<'"$reHref"'.*/\2!\1/p'
|
|
||||||
curl -s "$url" | sed -nre "$reFull" | sort -V -k 1,1 | tail -n1
|
|
||||||
}
|
|
||||||
|
|
||||||
getEntry() {
|
|
||||||
local name="$1"
|
|
||||||
for entry in $currentVersions; do
|
|
||||||
if [ "${entry%%:*}" = "$name" ]; then
|
|
||||||
echo "${entry#*:}"
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
|
|
||||||
prefetchNew() {
|
|
||||||
local name="$1"
|
|
||||||
local version="$2"
|
|
||||||
local package="$3"
|
|
||||||
local releaseId="$4"
|
|
||||||
|
|
||||||
local url="http://www.aquamaniac.de/sites/download/download.php"
|
|
||||||
local qstring="package=$package&release=$releaseId&file=01";
|
|
||||||
|
|
||||||
nix-prefetch-url --name "$name-$version.tar.gz" "$url?$qstring"
|
|
||||||
}
|
|
||||||
|
|
||||||
processPackage() {
|
|
||||||
local name="$1"
|
|
||||||
local package="$2"
|
|
||||||
|
|
||||||
local latest="$(getLastestVersion "$package")"
|
|
||||||
local current="$(getEntry "$name")"
|
|
||||||
local currentTail="${current#*!}"
|
|
||||||
|
|
||||||
local currentVersion="${current%%!*}"
|
|
||||||
local currentSha256="${currentTail%%!*}"
|
|
||||||
local currentReleaseId="${current##*!}"
|
|
||||||
|
|
||||||
local latestVersion="${latest%%!*}"
|
|
||||||
local latestReleaseId="${latest##*!}"
|
|
||||||
|
|
||||||
if [ "$latestVersion" = "$currentVersion" -a \
|
|
||||||
"$latestReleaseId" = "$currentReleaseId" ]; then
|
|
||||||
echo " $name.version = \"$currentVersion\";"
|
|
||||||
echo " $name.sha256 = \"$currentSha256\";"
|
|
||||||
echo " $name.releaseId = \"$currentReleaseId\";"
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
local latestSha256="$(
|
|
||||||
prefetchNew "$name" "$latestVersion" "$package" "$latestReleaseId"
|
|
||||||
)"
|
|
||||||
|
|
||||||
echo " $name.version = \"$latestVersion\";"
|
|
||||||
echo " $name.sha256 = \"$latestSha256\";"
|
|
||||||
echo " $name.releaseId = \"$latestReleaseId\";"
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
generateNewSources() {
|
|
||||||
echo "# This file is autogenerated from update.sh in the same directory."
|
|
||||||
echo "{"
|
|
||||||
for package in gwenhywfar:01 libchipcard:02 aqbanking:03; do
|
|
||||||
processPackage "${package%%:*}" "${package##*:}"
|
|
||||||
done
|
|
||||||
echo "}"
|
|
||||||
}
|
|
||||||
|
|
||||||
if newSources="$(generateNewSources)"; then
|
|
||||||
echo "$newSources" > "$basedir/sources.nix"
|
|
||||||
fi
|
|
Loading…
x
Reference in New Issue
Block a user