Simplify Pinta packaging with the upstream release tarball

This commit is contained in:
Scott Jones committed 2026-09-15 08:16:34 -04:00
1 parent afd8bcd754
commit 5371afbbb3
1 file changed
+9 -38
+9 -38
View File
@@ -1,16 +1,6 @@
# Pinta for Arch Linux ARM. The official repositories do not supply its
# .NET dependencies on ARM; use the dotnet-core-bin split package family.
pkgname=pinta.
#
# This is the AUR 3.1.2-1 recipe with two substitutions: arch=('aarch64')
# and RuntimeIdentifier=linux-arm64. Makedepends/depends use this repo's
# dotnet-*-bin packages from AUR dotnet-core-bin; Arch extra's unversioned
# dotnet-sdk / dotnet-runtime / dotnet-host / dotnet-targeting-pack names
# are not in ALARM extra, and must not resolve to the leftover 2.1 packages.
#
# Version bumps are edits to this file: update pkgver and sha256sums.
pkgname=pinta
pkgver=3.1.2
pkgrel=1
@@ -20,44 +10,25 @@ arch=('aarch64')
license=('MIT')
url="https://pinta-project.com"
makedepends=('pkgconf' 'autoconf-archive' 'intltool' 'dotnet-sdk-bin' 'dotnet-runtime-bin' 'dotnet-host-bin' 'dotnet-targeting-pack-bin' 'gtk4' 'perl')
makedepends=('pkgconf' 'intltool' 'dotnet-sdk-bin')
depends=('dotnet-runtime-bin' 'dotnet-host-bin' 'libadwaita' 'hicolor-icon-theme' 'webp-pixbuf-loader')
provides=($pkgname)
conflicts=($pkgname-git)
source=("Pinta-${pkgver}.tar.gz::https://github.com/PintaProject/Pinta/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('98ed517b33f0e40fd1e3915ea5146355845ac12efd3bb07812c68a52c714cac6')
prepare() {
cd "${srcdir}/Pinta-${pkgver}"
for file in *.md *.txt; do
basename=$(tr '[:lower:]' '[:upper:]' <<< "${file%.*}")
newname="$basename.${file#*.}"
[ ! "$file" == "$newname" ] && mv "$file" "$newname"
done
sed -i 's/net8.0/net10.0/g' Directory.Build.props
./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var
}
source=("https://github.com/PintaProject/Pinta/releases/download/${pkgver}/pinta-${pkgver}.tar.gz")
sha256sums=('27f55a026b51f6f18197e6bcfdd7c79544e41529d166daf6c93a1117e9ed45f0')
build() {
cd "${srcdir}/Pinta-${pkgver}"
sed -i -r 's|^(PINTA_BUILD_OPTS\s=\s.*)|\1 -p:RuntimeIdentifier=linux-arm64|g' Makefile
make
cd "${srcdir}/pinta-${pkgver}"
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make PINTA_BUILD_OPTS='--configuration Release -p:BuildTranslations=true -p:RuntimeIdentifier=linux-arm64'
}
package() {
cd "${srcdir}/Pinta-${pkgver}"
cd "${srcdir}/pinta-${pkgver}"
make DESTDIR="${pkgdir}" install
chmod -v 755 "${pkgdir}/usr/lib/pinta/"*.dll
install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}/" *.md
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE*.txt
install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}/" readme.md
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" license-*.txt
}