summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 106966c29c4af93518f40a7b878aeb5560940546 (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
# Maintainer: frakod <frakod@pm.me>

pkgname='smol_img'
pkgver='v1.3'
pkgrel=3

pkgdesc='Quick Image Editor with automatic resizing to reach target JPG/PNG size.'
arch=(pentium4 i686 x86_64 armv7h aarch64)
url='https://github.com/frak0d/smol_img'
license=('GPL-3.0-only')

depends=(qt5-base)
makedepends=(git cmake)
source=("git+$url" "$pkgname.desktop")
md5sums=('SKIP' 'SKIP')

prepare()
{
    cd $pkgname
    git checkout $pkgver
}

build()
{
    cd $pkgname
    cmake -S source -B build
    cmake --build build --config Release
}

package()
{
    cmake --install $pkgname/build --prefix $pkgdir/usr
    mkdir -p $pkgdir/usr/share/applications && cp $pkgname.desktop $_
}