# Maintainer: Felix Golatofski # Contributor: Marcel O'Neil pkgname=sia-ui _pkgname=Sia-UI pkgver=1.4.11 _pkgver="v${pkgver}" pkgrel=1 pkgdesc="Blockchain-based marketplace for file storage" arch=('x86_64') url="https://sia.tech" license=('MIT') depends=('gconf' 'gtk2' 'nss' 'libxss') source=("https://sia.tech/releases/Sia-UI-${_pkgver}.AppImage" "https://raw.githubusercontent.com/NebulousLabs/Sia-UI/master/LICENSE") sha512sums=('336e1c03f9e11f1a96c03b971ba8bdc3561e177b525c3cce2a7ff47df9e1eb811010bce3edd5a415056f750e72107bd8417cd31f26750915ac5660b31d2aff1c' 'da77523b36551334730d2be5e2b11935aa180db47dc703dcc9bd899269cd205f2205a406ff582cf8aa2fec2bae90442edcc2ef10aab341ce68e662b8137e98e3') prepare() { chmod u+x ${srcdir}/Sia-UI-${_pkgver}.AppImage ${srcdir}/Sia-UI-${_pkgver}.AppImage --appimage-extract } package() { cd squashfs-root # install icons for size in 16x16 32x32 48x48 64x64 128x128 256x256 512x512; do install -Dm644 "usr/share/icons/hicolor/$size/apps/sia-ui.png" \ "$pkgdir/usr/share/icons/hicolor/$size/apps/sia-ui.png" done # install resources install -d "$pkgdir"/{opt/${pkgname},usr/bin} cp -a * "$pkgdir/opt/$pkgname" find "$pkgdir/opt/$pkgname" -type d -exec chmod 755 {} \; find "$pkgdir/opt/$pkgname" -type f -exec chmod 644 {} \; chmod -R +x "$pkgdir/opt/$pkgname/resources/bin" # link executable chmod +x "$pkgdir/opt/$pkgname/$pkgname" ln -s /opt/$pkgname/$pkgname "$pkgdir/usr/bin/$pkgname" # install desktop file sed -e "s/AppRun/$pkgname/g" -i $pkgname.desktop install -Dm644 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop" install -Dm644 $srcdir/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }