diff options
author | xiota | 2023-11-01 16:44:42 -0700 |
---|---|---|
committer | xiota | 2023-11-01 16:46:03 -0700 |
commit | 553b08bbc6d75d236305fe94cf81158b1a39620d (patch) | |
tree | e6ea71783d750630f869b43164b3d373805f15f5 | |
parent | bfa6f18a5ecb87b04904c93a42a78c891e698110 (diff) | |
download | aur-553b08bbc6d75d236305fe94cf81158b1a39620d.tar.gz |
update makedepends, pkgver()
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 79 |
2 files changed, 46 insertions, 40 deletions
@@ -1,20 +1,19 @@ pkgbase = avaloniailspy-git pkgdesc = Avalonia-based .NET Decompiler (port of ILSpy) - pkgver = 7.2.rc.r10.gbc00df4 + pkgver = 7.2rc.r10.gbc00df4 pkgrel = 1 url = https://github.com/icsharpcode/AvaloniaILSpy arch = any license = LGPL2.1 license = MIT - license = Ms-PL + license = MSPL makedepends = dotnet-sdk makedepends = libicns makedepends = git - makedepends = mono depends = dotnet-runtime provides = avaloniailspy conflicts = avaloniailspy - source = avaloniailspy::git+https://github.com/icsharpcode/AvaloniaILSpy + source = avaloniailspy::git+https://github.com/icsharpcode/AvaloniaILSpy.git source = avaloniailspy.desktop sha256sums = SKIP sha256sums = 64135778bb5780ebcf2343cfa69b3518d4cb12e043febc9ae42d4fa93dc10d87 @@ -3,16 +3,12 @@ _pkgname="avaloniailspy" pkgname="$_pkgname-git" -pkgver=7.2.rc.r10.gbc00df4 +pkgver=7.2rc.r10.gbc00df4 pkgrel=1 -url="https://github.com/icsharpcode/AvaloniaILSpy" pkgdesc="Avalonia-based .NET Decompiler (port of ILSpy)" +url="https://github.com/icsharpcode/AvaloniaILSpy" +license=('LGPL2.1' 'MIT' 'MSPL') arch=("any") -license=( - 'LGPL2.1' - 'MIT' - 'Ms-PL' -) depends=( 'dotnet-runtime' @@ -21,60 +17,71 @@ makedepends=( 'dotnet-sdk' 'libicns' 'git' - 'mono' ) -if [ x"$_pkgname" != x"$pkgname" ] ; then - provides=("avaloniailspy") - conflicts=("avaloniailspy") +if [ x"$pkgname" == x"$_pkgname" ] ; then + # normal package + _pkgver="$(echo "${pkgver:?}" | sed -E 's@^(.*)(rc)@\1-\2@')" + _pkgsrc="$_pkgname" + source+=("$_pkgsrc"::"git+$url.git#tag=v${_pkgver%%.r*}") + sha256sums+=('SKIP') + + pkgver() { + echo "${_pkgver:?}" | sed -E 's/-(rc)/\1/;s/-/./g;s/\.r.*$//' + } +else + # git package + provides=("$_pkgname") + conflicts=("$_pkgname") + + _pkgsrc="$_pkgname" + source+=("$_pkgname"::"git+$url.git") + sha256sums+=('SKIP') + + pkgver() { + cd "${srcdir:?}/$_pkgsrc" + git describe --long --tags | sed -E 's/^v//;s/-(rc)/\1/;s/([^-]*-g)/r\1/;s/-/./g' + } fi -_pkgsrc="$_pkgname" -source=( - "$_pkgname"::"git+$url" +source+=( "$_pkgname.desktop" ) -sha256sums=( - "SKIP" +sha256sums+=( "64135778bb5780ebcf2343cfa69b3518d4cb12e043febc9ae42d4fa93dc10d87" ) -pkgver() { - cd "$srcdir/$_pkgsrc" - git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' -} - prepare() { - cd "$srcdir/$_pkgsrc" + cd "$_pkgsrc" icns2png -x ILSpy/ILSpy.icns } build() { - cd "$srcdir/$_pkgsrc" + cd "$_pkgsrc" dotnet tool restore dotnet cake } package() { - mkdir -p "$pkgdir/usr/share/" - cp -r "$srcdir/$_pkgsrc/artifacts/linux-x64/" "$pkgdir/usr/share/$_pkgname" + mkdir -p "${pkgdir:?}/usr/share/" + cp -r "${srcdir:?}/$_pkgsrc/artifacts/linux-x64/" "${pkgdir:?}/usr/share/$_pkgname" - mkdir -p "$pkgdir/usr/bin/" - ln -s "/usr/share/$_pkgname/ILSpy" "$pkgdir/usr/bin/$_pkgname" + mkdir -p "${pkgdir:?}/usr/bin/" + ln -s "/usr/share/$_pkgname/ILSpy" "${pkgdir:?}/usr/bin/$_pkgname" # Licenses - install -Dm644 "$srcdir/$_pkgsrc/doc/license.txt" \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - install -Dm644 "$srcdir/$_pkgsrc/doc/LGPL.txt" \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE.LGPL-2.1" - install -Dm644 "$srcdir/$_pkgsrc/doc/MS-PL.txt" \ - "$pkgdir/usr/share/licenses/$pkgname/LICENSE.MSPL" + install -Dm644 "${srcdir:?}/$_pkgsrc/doc/license.txt" \ + "${pkgdir:?}/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 "${srcdir:?}/$_pkgsrc/doc/LGPL.txt" \ + "${pkgdir:?}/usr/share/licenses/$pkgname/LICENSE.LGPL-2.1" + install -Dm644 "${srcdir:?}/$_pkgsrc/doc/MS-PL.txt" \ + "${pkgdir:?}/usr/share/licenses/$pkgname/LICENSE.MSPL" # Icon for .desktop - install -Dm644 "$srcdir/$_pkgsrc/ILSpy_256x256x32.png" \ - "$pkgdir/usr/share/icons/hicolor/256x256/apps/$pkgname.png" + install -Dm644 "${srcdir:?}/$_pkgsrc/ILSpy_256x256x32.png" \ + "${pkgdir:?}/usr/share/icons/hicolor/256x256/apps/$pkgname.png" # .desktop - install -Dm644 "$srcdir/$_pkgname.desktop" -t "$pkgdir/usr/share/applications/" + install -Dm644 "${srcdir:?}/$_pkgname.desktop" -t "${pkgdir:?}/usr/share/applications/" } |