summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8442751fb44fff9c2d7503d8d688990baf0129a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: guglovich <guglovich164@gmail.com>
# Created with assistance from Qwen 3.6 (Alibaba).

options=('!debug')

pkgname=xl-converter
pkgver=1.2.3
pkgrel=2
pkgdesc="Easy-to-use image converter for modern formats (JPEG XL, AVIF, JPEGLI, WebP)"
arch=('any')
url="https://github.com/JacobDev1/xl-converter"
license=('GPL-3.0-only')
depends=(
    'python'
    'python-pyqt6'
    'pyside6'
    'python-send2trash'
    'libjxl'
    'libavif'
    'imagemagick'
    'oxipng'
    'perl-image-exiftool'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/JacobDev1/xl-converter/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('b9718b55f1a065a7b0894899334d5c517e4aca35cb7ad7c57db92adace19c7b3')

package() {
    cd "xl-converter-$pkgver"

    install -dm755 "$pkgdir/opt/$pkgname"
    cp -r . "$pkgdir/opt/$pkgname/"

    install -dm755 "$pkgdir/usr/bin"
    cat > "$pkgdir/usr/bin/$pkgname" <<EOF
#!/bin/sh
exec python /opt/$pkgname/main.py "\$@"
EOF
    chmod +x "$pkgdir/usr/bin/$pkgname"

    install -Dm644 assets/icons/logo.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg"

    install -dm755 "$pkgdir/usr/share/applications"
    cat > "$pkgdir/usr/share/applications/$pkgname.desktop" <<EOF
[Desktop Entry]
Name=XL Converter
Comment=Image converter for modern formats
Exec=$pkgname
Icon=$pkgname
Terminal=false
Type=Application
Categories=Graphics;
EOF
}