Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions archlinuxcn/imageglass/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Maintainer: Dee.H.Y <dongfengweixiao at hotmail dot com>

_pkgname="ImageGlass"
pkgname="imageglass"
Comment thread
DeepChirp marked this conversation as resolved.
pkgver=10.0.0.314_beta_1
pkgrel=1
pkgdesc="lightweight, versatile image viewer"
url="https://imageglass.org"
license=('LicenseRef-imageglass')
arch=('x86_64')

depends=(
'fontconfig'
'glibc'
'hicolor-icon-theme'
'libgomp'
)
makedepends=(
'dotnet-sdk'
'git'
)

_pkgsrc="$pkgname-$pkgver"
_pkgext="tar.gz"
Comment thread
DeepChirp marked this conversation as resolved.
source=(
"$_pkgsrc.$_pkgext"::"https://github.com/d2phap/ImageGlass/archive/refs/tags/${pkgver//_/-}.$_pkgext"
'imageglass.desktop'
'igconfig.default.json'
)
sha256sums=('211de2b00b9039d739ebc2347f9ac5d7aeb4546e367da6ed41058c63ad3e81ba'
'b31814a355395b002b8bd2dedc9107f5c288a56998df6e9894379900b6a7c560'
'21fbac2e5dceccc8b5f1515a7c6621e3bf7ea06479c73f665f7474ad7479e816')
build() {
cd "$srcdir/${_pkgname}-${pkgver//_/-}/v10/"
dotnet publish ImageGlass.Linux/ImageGlass.Linux.csproj \
-c Release \
-r linux-x64 \
-p:Platform=x64 \
-p:PublishAot=true \
-p:PublishSingleFile=true \
-p:PublishTrimmed=true \
-o ./artifacts/publish/linux-x64 \
--self-contained true
}

package() {
Comment thread
DeepChirp marked this conversation as resolved.
cd "$srcdir/${_pkgname}-${pkgver//_/-}/v10/artifacts/publish/linux-x64"
for file in ImageGlass libHarfBuzzSharp.so libSkiaSharp.so Magick.Native-Q8-OpenMP-x64.dll.so; do
install -Dm755 "$file" "$pkgdir/usr/lib/$pkgname/$file"
done
install -dm755 "$pkgdir/usr/bin"
ln -s "/usr/lib/$pkgname/ImageGlass" "$pkgdir/usr/bin/$pkgname"
# copy resources
cp -r "$srcdir/${_pkgname}-${pkgver//_/-}/v10/assets/resources/"* "$pkgdir/usr/lib/$pkgname/"
# install desktop file and icon
install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
install -Dm644 "$srcdir/${_pkgname}-${pkgver//_/-}/v10/assets/Logo.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg"
install -Dm644 "$srcdir/${_pkgname}-${pkgver//_/-}/v10/assets/Logo512.png" "$pkgdir/usr/share/icons/hicolor/512x512/apps/$pkgname/$pkgname.png"
# install default config file
install -Dm644 "$srcdir/igconfig.default.json" "$pkgdir/usr/lib/$pkgname/igconfig.default.json"
# install license
install -Dm644 "$srcdir/${_pkgname}-${pkgver//_/-}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
3 changes: 3 additions & 0 deletions archlinuxcn/imageglass/igconfig.default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"AutoUpdate": "0"
}
10 changes: 10 additions & 0 deletions archlinuxcn/imageglass/imageglass.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Name=ImageGlass
Comment=A lightweight, versatile image viewer
Exec=imageglass %F
Icon=imageglass
Terminal=false
Type=Application
Categories=Graphics;Viewer;
MimeType=image/jpeg;image/png;image/gif;image/bmp;image/tiff;image/svg+xml;image/webp;image/avif;image/heic;image/heif;image/x-icon;image/vnd.microsoft.icon;image/x-tga;image/x-xcf;image/x-xbitmap;image/x-portable-pixmap;image/x-portable-graymap;image/x-portable-bitmap;image/x-portable-anymap;image/x-exr;image/x-radiance;image/x-dds;image/x-adobe-dng;image/x-canon-cr2;image/x-canon-cr3;image/x-canon-crw;image/x-nikon-nef;image/x-nikon-nrw;image/x-sony-arw;image/x-sony-sr2;image/x-sony-srf;image/x-panasonic-raw;image/x-panasonic-rw2;image/x-olympus-orf;image/x-fuji-raf;image/x-kodak-dcr;image/x-pentax-pef;image/x-samsung-srw;image/vnd.adobe.photoshop;
StartupWMClass=ImageGlass
12 changes: 12 additions & 0 deletions archlinuxcn/imageglass/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
maintainers:
- github: dongfengweixiao
email: Dee.H.Y <dongfengweixiao@hotmail.com>

pre_build_script: update_pkgver_and_pkgrel(_G.newver.replace('-', '_'))
post_build: git_pkgbuild_commit

update_on:
- source: github
github: d2phap/ImageGlass
use_max_tag: true
include_regex: '^10\..*beta.*'