summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8894d0eda1aef142764f350fdf02efda9e285249 (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
pkgname=captioner
pkgver=1.2.0
pkgrel=1
pkgdesc="GUI program to caption/manip images using plain text or markdown."
arch=('x86_64')
url='https://github.com/Matthieu-LAURENT39/captioner'
license=('GPL')

depends=("python>=3.11" "pyside6" "python-pillow")
makedepends=(python-build python-installer python-wheel)
optdepends=()

source=("https://github.com/Matthieu-LAURENT39/captioner/archive/refs/tags/v${pkgver}.tar.gz")
sha1sums=('ed0ccc6495e2008c6ff75d36860312ab933d9ba3')

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    python -m installer --destdir="$pkgdir" dist/*.whl

    install -Dm644 packaging/captioner.desktop "$pkgdir"/usr/share/applications/captioner.desktop
}