Make sure upgrade does not require clean install

This commit is contained in:
2025-06-09 15:07:52 -04:00
parent 100ddb6dee
commit 608b7a1894
3 changed files with 12 additions and 12 deletions

View File

@ -1,22 +1,20 @@
# Maintainer: Balakrishnan Balasubramanian <aur@balki.me>
#Maintainer: Bjoern Franke <bjo+aur@schafweide.org>
# Previous Maintainer: Bjoern Franke <bjo+aur@schafweide.org>
pkgname=phanpy-bin
_pkgver=2025.04.28.5849b4d
pkgver=${_pkgver//-/.}
pkgrel=1
pkgver=2025.04.28.5849b4d
pkgrel=2
pkgdesc="A minimalistic opinionated Mastodon web client"
arch=('any')
url="https://github.com/cheeaun/phanpy/"
license=('MIT')
provides=('phanpy')
conflicts=('phanpy')
source=("https://github.com/cheeaun/phanpy/releases/download/${_pkgver}/phanpy-dist.tar.gz")
source=(phanpy-dist-$pkgver.tar.gz::"https://github.com/cheeaun/phanpy/releases/download/${pkgver}/phanpy-dist.tar.gz")
noextract=(phanpy-dist-$pkgver.tar.gz)
sha256sums=('63bb5eff2cb391e9d3aabea6e97632a2d5d9e89bb0e49a868316080c676c4bc4')
package() {
cd ${srcdir}
install -d "${pkgdir}"/usr/share/webapps/phanpy/
cp -r * "${pkgdir}"/usr/share/webapps/phanpy/
rm "${pkgdir}"/usr/share/webapps/phanpy/phanpy-dist.tar.gz
install -d "${pkgdir}"/usr/share/webapps/phanpy/
tar xf phanpy-dist-$pkgver.tar.gz --directory "${pkgdir}"/usr/share/webapps/phanpy/
}