2022-12-23 17:37:31 +00:00
|
|
|
#@IgnoreInspection BashAddShebang
|
2019-10-25 22:36:03 +01:00
|
|
|
# Maintainer: Natalia Portillo <claunia@claunia.com>
|
2025-08-22 01:15:20 +01:00
|
|
|
_netcoretarget='net10.0'
|
2020-07-25 03:31:28 +01:00
|
|
|
_aarubase='Aaru'
|
2022-12-23 17:37:31 +00:00
|
|
|
packager='Natalia Portillo <claunia@claunia.com>'
|
2020-03-12 12:44:48 +00:00
|
|
|
pkgname='aaru'
|
2026-03-11 02:20:16 +00:00
|
|
|
pkgver=6.0.0~alpha19
|
2019-10-25 22:36:03 +01:00
|
|
|
pkgrel=1
|
|
|
|
|
pkgdesc='Disc image management and creation tool for disks, tapes, optical and solid state media'
|
2020-03-12 12:44:48 +00:00
|
|
|
arch=('x86_64' 'armv7h' 'aarch64')
|
|
|
|
|
url='http://www.aaru.app'
|
2019-10-25 22:36:03 +01:00
|
|
|
license=('GPL')
|
2026-03-11 02:20:16 +00:00
|
|
|
source=('aaru-src-6.0.0-alpha.19.tar.xz::local://aaru-src-6.0.0-alpha.19.tar.xz'
|
|
|
|
|
'aaru-src-6.0.0-alpha.19.tar.xz.asc::local://aaru-src-6.0.0-alpha.19.tar.xz.asc')
|
2025-08-22 01:15:20 +01:00
|
|
|
makedepends=('dotnet-sdk>=10.0.0')
|
2022-12-23 17:38:04 +00:00
|
|
|
options=('!strip' 'staticlibs')
|
2019-10-25 22:36:03 +01:00
|
|
|
validpgpkeys=('236F1E21B540FC0D40F7AD1751D20488C724CA9F')
|
2020-03-12 12:44:48 +00:00
|
|
|
provides=('aaru')
|
|
|
|
|
conflicts=('aaru')
|
2025-08-14 03:35:12 +01:00
|
|
|
depends=('icu' 'krb5' 'libunwind' 'openssl' 'zlib')
|
2019-10-25 22:36:03 +01:00
|
|
|
|
2020-03-12 12:44:48 +00:00
|
|
|
if [ $arch == 'aarch64' ]; then
|
|
|
|
|
dotnet_rid=linux-arm64
|
|
|
|
|
elif [ $arch == 'armv7h' ]; then
|
|
|
|
|
dotnet_rid=linux-arm
|
|
|
|
|
else
|
|
|
|
|
dotnet_rid=linux-x64
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
build() {
|
2020-07-25 03:31:28 +01:00
|
|
|
cd "${srcdir}"/"${_aarubase}"
|
|
|
|
|
dotnet publish -f ${_netcoretarget} -c Release --self-contained -r ${dotnet_rid}
|
2020-03-12 12:44:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
package() {
|
2020-03-12 13:33:36 +00:00
|
|
|
# Install MIME database file
|
2020-07-25 03:31:28 +01:00
|
|
|
cd "${srcdir}"/"${_aarubase}"
|
2020-03-12 13:33:36 +00:00
|
|
|
install -d -m0755 -g 0 "${pkgdir}"/usr/share/mime/packages
|
2025-12-31 17:42:47 +00:00
|
|
|
install -m0644 -g 0 -t "${pkgdir}"/usr/share/mime/packages aaruformat.xml
|
|
|
|
|
|
|
|
|
|
# Install desktop file
|
|
|
|
|
install -d -m0755 -g 0 "${pkgdir}"/usr/share/applications
|
|
|
|
|
install -m0644 -g 0 -t "${pkgdir}"/usr/share/applications aaru.desktop
|
2020-03-12 13:33:36 +00:00
|
|
|
|
2025-12-31 19:01:06 +00:00
|
|
|
# Install icons
|
2026-01-06 17:12:48 +00:00
|
|
|
cd "${srcdir}"
|
2025-12-31 19:01:06 +00:00
|
|
|
install -d -m0755 -g 0 "${pkgdir}"/usr/share/icons/hicolor/32x32/apps
|
|
|
|
|
install -m0644 -g 0 -t "${pkgdir}"/usr/share/icons/hicolor/32x32/apps icons/32x32/aaru.png
|
|
|
|
|
|
|
|
|
|
install -d -m0755 -g 0 "${pkgdir}"/usr/share/icons/hicolor/64x64/apps
|
|
|
|
|
install -m0644 -g 0 -t "${pkgdir}"/usr/share/icons/hicolor/64x64/apps icons/64x64/aaru.png
|
|
|
|
|
|
|
|
|
|
install -d -m0755 -g 0 "${pkgdir}"/usr/share/icons/hicolor/128x128/apps
|
|
|
|
|
install -m0644 -g 0 -t "${pkgdir}"/usr/share/icons/hicolor/128x128/apps icons/128x128/aaru.png
|
|
|
|
|
|
|
|
|
|
install -d -m0755 -g 0 "${pkgdir}"/usr/share/icons/hicolor/256x256/apps
|
|
|
|
|
install -m0644 -g 0 -t "${pkgdir}"/usr/share/icons/hicolor/256x256/apps icons/256x256/aaru.png
|
|
|
|
|
|
|
|
|
|
install -d -m0755 -g 0 "${pkgdir}"/usr/share/icons/hicolor/512x512/apps
|
|
|
|
|
install -m0644 -g 0 -t "${pkgdir}"/usr/share/icons/hicolor/512x512/apps icons/512x512/aaru.png
|
|
|
|
|
|
2020-07-25 03:31:28 +01:00
|
|
|
cd "${srcdir}"/"${_aarubase}"/bin/Release/${_netcoretarget}/${dotnet_rid}/publish
|
2019-10-25 22:36:03 +01:00
|
|
|
|
|
|
|
|
# Create destination directory
|
2020-03-12 12:44:48 +00:00
|
|
|
install -d -m0755 -g 0 "${pkgdir}"/opt/Aaru
|
|
|
|
|
|
|
|
|
|
# Copy Linux binary
|
|
|
|
|
install -m0755 -g 0 -t "${pkgdir}"/opt/Aaru aaru
|
2019-10-25 22:36:03 +01:00
|
|
|
|
2025-09-28 04:01:25 +01:00
|
|
|
cd "${srcdir}"/"${_aarubase}"/bin/Release/${_netcoretarget}/${dotnet_rid}
|
2019-10-25 22:36:03 +01:00
|
|
|
|
2020-03-12 12:44:48 +00:00
|
|
|
# Copy documentation files
|
|
|
|
|
install -m0644 -g 0 -t "${pkgdir}"/opt/Aaru *.md
|
|
|
|
|
install -m0644 -g 0 -t "${pkgdir}"/opt/Aaru LICENSE*
|
2019-10-25 22:36:03 +01:00
|
|
|
|
2020-03-12 12:44:48 +00:00
|
|
|
# Link executable
|
2019-10-25 22:36:03 +01:00
|
|
|
install -d -m0755 -g 0 "${pkgdir}"/usr/bin
|
2020-03-12 12:44:48 +00:00
|
|
|
ln -sf /opt/Aaru/aaru "${pkgdir}"/usr/bin/aaru
|
2020-03-12 13:33:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
|
xdg-icon-resource forceupdate --theme hicolor &>/dev/null
|
|
|
|
|
update-mime-database usr/share/mime &>/dev/null
|
|
|
|
|
update-desktop-database -q
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
post_upgrade() {
|
|
|
|
|
post_install "$1"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
post_remove() {
|
|
|
|
|
post_install "$1"
|
2020-07-25 03:31:28 +01:00
|
|
|
}
|