mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Rebranded rolling Arch Linux package build script.
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
#@IgnoreInspection BashAddShebang
|
||||
# Maintainer: Natalia Portillo <claunia@claunia.com>
|
||||
_netcoretarget='netcoreapp2.0'
|
||||
_dicbase=discimagechef
|
||||
_aarubase=aaru
|
||||
packager='Natalia Portillo <claunia@claunia.com>'
|
||||
pkgbase='discimagechef-git'
|
||||
pkgname=('discimagechef-git' 'discimagechef-gtk-git')
|
||||
pkgbase='aaru-git'
|
||||
pkgname=('aaru-git' 'aaru-gtk-git')
|
||||
pkgver=v4.5.1.1692.r814.gefeaae56
|
||||
pkgrel=1
|
||||
pkgdesc='Disc image management and creation tool for disks, tapes, optical and solid state media'
|
||||
arch=('x86_64' 'armv7h' 'aarch64')
|
||||
url='http://www.discimagechef.app'
|
||||
url='http://www.aaru.app'
|
||||
license=('GPL')
|
||||
source=('git://github.com/DiscImageChef/discimagechef')
|
||||
source=('git://github.com/Aaru/Aaru')
|
||||
makedepends=('dotnet-sdk>=2.0.0' 'git')
|
||||
options=('!strip' 'staticlibs')
|
||||
sha256sums=('SKIP')
|
||||
provides=('discimagechef')
|
||||
conflicts=('discimagechef')
|
||||
provides=('aaru')
|
||||
conflicts=('aaru')
|
||||
depends=('icu' 'krb5' 'libcurl.so' 'libunwind' 'openssl-1.0' 'zlib')
|
||||
|
||||
if [ $arch == 'aarch64' ]; then
|
||||
@@ -33,85 +33,85 @@ pkgver() {
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}"/"${_dicbase}"
|
||||
cd "${srcdir}"/"${_aarubase}"
|
||||
git submodule update --init --checkout --recursive
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}"/"${_dicbase}"
|
||||
dotnet restore DiscImageChef.sln
|
||||
dotnet build -f ${_netcoretarget} -c Debug DiscImageChef.sln
|
||||
dotnet publish -f ${_netcoretarget} -c Debug --self-contained -r ${dotnet_rid} DiscImageChef.sln
|
||||
dotnet restore DiscImageChef.Gtk.sln
|
||||
dotnet build -f ${_netcoretarget} -c Debug DiscImageChef.Gtk.sln
|
||||
dotnet publish -f ${_netcoretarget} -c Debug --self-contained -r ${dotnet_rid} DiscImageChef.Gtk.sln
|
||||
cd "${srcdir}"/"${_aarubase}"
|
||||
dotnet restore Aaru.sln
|
||||
dotnet build -f ${_netcoretarget} -c Debug Aaru.sln
|
||||
dotnet publish -f ${_netcoretarget} -c Debug --self-contained -r ${dotnet_rid} Aaru.sln
|
||||
dotnet restore Aaru.Gtk.sln
|
||||
dotnet build -f ${_netcoretarget} -c Debug Aaru.Gtk.sln
|
||||
dotnet publish -f ${_netcoretarget} -c Debug --self-contained -r ${dotnet_rid} Aaru.Gtk.sln
|
||||
}
|
||||
|
||||
package_discimagechef-git() {
|
||||
cd "${srcdir}"/"${_dicbase}"/DiscImageChef/bin/Debug/${_netcoretarget}/${dotnet_rid}/publish
|
||||
package_aaru-git() {
|
||||
cd "${srcdir}"/"${_aarubase}"/Aaru/bin/Debug/${_netcoretarget}/${dotnet_rid}/publish
|
||||
|
||||
# Create destination directory
|
||||
install -d -m0755 -g 0 "${pkgdir}"/opt/DiscImageChef
|
||||
install -d -m0755 -g 0 "${pkgdir}"/opt/Aaru
|
||||
|
||||
# Copy Linux binary
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/DiscImageChef DiscImageChef
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/Aaru Aaru
|
||||
|
||||
# Copy Linux dependencies
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/DiscImageChef *.so
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/DiscImageChef *.a
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/DiscImageChef createdump
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/DiscImageChef sosdocsunix.txt
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/Aaru *.so
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/Aaru *.a
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/Aaru createdump
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/Aaru sosdocsunix.txt
|
||||
|
||||
# Copy .NET dependencies
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/DiscImageChef *.dll
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/Aaru *.dll
|
||||
|
||||
# Copy .NET configuration files
|
||||
install -m0644 -g 0 -t "${pkgdir}"/opt/DiscImageChef *.json
|
||||
install -m0644 -g 0 -t "${pkgdir}"/opt/Aaru *.json
|
||||
|
||||
# Copy documentation files
|
||||
install -m0644 -g 0 -t "${pkgdir}"/opt/DiscImageChef *.md
|
||||
install -m0644 -g 0 -t "${pkgdir}"/opt/DiscImageChef LICENSE*
|
||||
install -m0644 -g 0 -t "${pkgdir}"/opt/Aaru *.md
|
||||
install -m0644 -g 0 -t "${pkgdir}"/opt/Aaru LICENSE*
|
||||
|
||||
# Copy .NET debug files
|
||||
install -m0644 -g 0 -t "${pkgdir}"/opt/DiscImageChef *.pdb
|
||||
install -m0644 -g 0 -t "${pkgdir}"/opt/Aaru *.pdb
|
||||
|
||||
# Link executable
|
||||
install -d -m0755 -g 0 "${pkgdir}"/usr/bin
|
||||
ln -sf /opt/DiscImageChef/DiscImageChef "${pkgdir}"/usr/bin/dic
|
||||
ln -sf /opt/Aaru/Aaru "${pkgdir}"/usr/bin/aaru
|
||||
}
|
||||
|
||||
# TODO: Can optimize so no need to install separately with a depend?
|
||||
package_discimagechef-gtk-git() {
|
||||
package_aaru-gtk-git() {
|
||||
depends=('gtk3')
|
||||
|
||||
cd "${srcdir}"/"${_dicbase}"/DiscImageChef.Gtk/bin/Debug/${_netcoretarget}/${dotnet_rid}/publish
|
||||
cd "${srcdir}"/"${_aarubase}"/Aaru.Gtk/bin/Debug/${_netcoretarget}/${dotnet_rid}/publish
|
||||
|
||||
# Create destination directory
|
||||
install -d -m0755 -g 0 "${pkgdir}"/opt/DiscImageChef.Gtk
|
||||
install -d -m0755 -g 0 "${pkgdir}"/opt/Aaru.Gtk
|
||||
|
||||
# Copy Linux binary
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/DiscImageChef.Gtk DiscImageChefGui
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/Aaru.Gtk AaruGui
|
||||
|
||||
# Copy Linux dependencies
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/DiscImageChef.Gtk *.so
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/DiscImageChef.Gtk *.a
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/DiscImageChef.Gtk createdump
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/DiscImageChef.Gtk sosdocsunix.txt
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/Aaru.Gtk *.so
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/Aaru.Gtk *.a
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/Aaru.Gtk createdump
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/Aaru.Gtk sosdocsunix.txt
|
||||
|
||||
# Copy .NET dependencies
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/DiscImageChef.Gtk *.dll
|
||||
install -m0755 -g 0 -t "${pkgdir}"/opt/Aaru.Gtk *.dll
|
||||
|
||||
# Copy .NET configuration files
|
||||
install -m0644 -g 0 -t "${pkgdir}"/opt/DiscImageChef.Gtk *.json
|
||||
install -m0644 -g 0 -t "${pkgdir}"/opt/Aaru.Gtk *.json
|
||||
|
||||
# Copy documentation files
|
||||
install -m0644 -g 0 -t "${pkgdir}"/opt/DiscImageChef.Gtk *.md
|
||||
install -m0644 -g 0 -t "${pkgdir}"/opt/DiscImageChef.Gtk LICENSE*
|
||||
install -m0644 -g 0 -t "${pkgdir}"/opt/Aaru.Gtk *.md
|
||||
install -m0644 -g 0 -t "${pkgdir}"/opt/Aaru.Gtk LICENSE*
|
||||
|
||||
# Copy .NET debug files
|
||||
install -m0644 -g 0 -t "${pkgdir}"/opt/DiscImageChef.Gtk *.pdb
|
||||
install -m0644 -g 0 -t "${pkgdir}"/opt/Aaru.Gtk *.pdb
|
||||
|
||||
# Link executable
|
||||
install -d -m0755 -g 0 "${pkgdir}"/usr/bin
|
||||
ln -sf /opt/DiscImageChef/DiscImageChefGui "${pkgdir}"/usr/bin/dic-gtk
|
||||
}
|
||||
ln -sf /opt/Aaru/AaruGui "${pkgdir}"/usr/bin/aaru-gtk
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user