diff options
author | doragasu | 2022-01-24 22:48:04 +0100 |
---|---|---|
committer | doragasu | 2022-01-24 22:48:04 +0100 |
commit | 42033432f1dca06438a4b4505c2ff95164052977 (patch) | |
tree | 076c58f5b09a4e4edb88fe15148ba0c9912dc525 | |
parent | 42f6eda28e447e3260a6dd3c634401f608f32d14 (diff) | |
download | aur-42033432f1dca06438a4b4505c2ff95164052977.tar.gz |
Update to version 3.12 SP1
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 39 insertions, 3 deletions
@@ -1,6 +1,6 @@ pkgbase = lattice-diamond pkgdesc = Lattice Diamond design software - pkgver = 3.12 + pkgver = 3.12.1.454.2 pkgrel = 1 url = http://www.latticesemi.com/ install = lattice-diamond.install @@ -8,13 +8,14 @@ pkgbase = lattice-diamond license = custom options = !strip source = http://files.latticesemi.com/Diamond/3.12/diamond_3_12-base-240-2-x86_64-linux.rpm + source = http://files.latticesemi.com/Diamond/3.12.1/diamond_3_12-sp1-454-2-x86_64-linux.rpm source = lattice-diamond.png source = lattice-diamond.desktop source = lattice-diamond.install sha512sums = b3cd590ad588c01b0296ed055735c7cc3670c37265d7f377abb57ff225eec8b621380cc56025eec6f0836bfef470da2d2c28ea87d03bf0152fe506c16c02f6b9 + sha512sums = 90f1f98610e423917c86286f515881a2b091ed83b0a1097ed53de327e13353a4fa56b0e1e95e60ecfc0e8de3fa941431b5d9a857d747be476d50d3034ddcc0d7 sha512sums = 772fa260bb1a4ed7c4e328a99b3cd16b625e8880d7731abbe0cd59dbe4d743265e169a26ceba7b619a87c1cb9638a268a5501d3358863171ee808e59b2d3b0ac sha512sums = b5e8b6d6ed282181aff1a0206adf333339c19bd9f2f0d61984864891e971f4923f64d6fc8b657035a080d22c519f26afa30d73933f842b9c66008cecad3f3179 sha512sums = 0f6f4463e1b1266a151afaaf6fefb3d69b712fafd6f2fa20beb211a3f9dd4db216be7255cc8fddaac946534754739c13406476fc6474236e7505bcd033a71d81 pkgname = lattice-diamond - @@ -7,20 +7,24 @@ # Then put these files in the build directory and retry. _version=3.12 +_sp=1 +_build=454.2 _base=240-2 pkgname=lattice-diamond pkgdesc='Lattice Diamond design software' url=http://www.latticesemi.com/ license=('custom') -pkgver=${_version} +pkgver=${_version}.${_sp}.${_build} pkgrel=1 arch=('x86_64') install=$pkgname.install source=("http://files.latticesemi.com/Diamond/${_version}/diamond_${_version/"."/"_"}-base-${_base}-${arch}-linux.rpm" + "http://files.latticesemi.com/Diamond/${_version}.${_sp}/diamond_${_version/"."/"_"}-sp${_sp}-${_build/"."/"-"}-${arch}-linux.rpm" "${pkgname}.png" "${pkgname}.desktop" "${pkgname}.install") sha512sums=('b3cd590ad588c01b0296ed055735c7cc3670c37265d7f377abb57ff225eec8b621380cc56025eec6f0836bfef470da2d2c28ea87d03bf0152fe506c16c02f6b9' + '90f1f98610e423917c86286f515881a2b091ed83b0a1097ed53de327e13353a4fa56b0e1e95e60ecfc0e8de3fa941431b5d9a857d747be476d50d3034ddcc0d7' '772fa260bb1a4ed7c4e328a99b3cd16b625e8880d7731abbe0cd59dbe4d743265e169a26ceba7b619a87c1cb9638a268a5501d3358863171ee808e59b2d3b0ac' 'b5e8b6d6ed282181aff1a0206adf333339c19bd9f2f0d61984864891e971f4923f64d6fc8b657035a080d22c519f26afa30d73933f842b9c66008cecad3f3179' '0f6f4463e1b1266a151afaaf6fefb3d69b712fafd6f2fa20beb211a3f9dd4db216be7255cc8fddaac946534754739c13406476fc6474236e7505bcd033a71d81') @@ -37,6 +41,37 @@ prepare() { rm ${package}.tar.gz echo ' done!' done + + # Apply service pack + cd ${srcdir}/usr/local/diamond/${_version} + for directory in bin cae_library data docs embedded_source examples ispfpga modeltech module synpbase tcltk + do + echo -en "\tPatching ${directory}..." + cp -rpf sp/${directory} ./ + echo ' done!' + done + rm -rf sp + + # Update version information and installation history + echo -en "\tUpdating version information..." + sed -i "1iDiamond ${pkgver} Service Pack ${_sp} Date: `LANG=C date`" \ + ${srcdir}/usr/local/diamond/${_version}/data/installation_history.txt + + for file in data/ispsys.ini ispfpga/data/ispsys.ini + do + awk -i inplace 'BEGIN { FS = "="; minor = ARGV[2]; ARGV[2] = ""; bnum = ARGV[3]; ARGV[3] = ""; build_rev = ARGV[4]; ARGV[4] = ""}; + { + if ($1 == "MinorVersion") + printf "%s=%s\n", $1, minor + else if ($1 == "BuildNumber") + printf "%s=%s\n", $1, bnum + else if ($1 == "ProductType") + printf "%s=%s\n", $1, build_rev + else + printf "%s\n", $0 + }' ${file} $(echo ${pkgver} | cut -f 2,3 -d'.') ${_build} ${pkgver} + done + echo ' done!' } package() { |