summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ff72f9ae2e03e450581d665e18bfef7e510eb42 (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
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: JKA Network <contacto@jkanetwork.com>
# Contributor: Javier Steinaker <jsteinaker@gmail.com>

pkgname=pinta-git
pkgver=r3610.b79bd6a5
pkgrel=1
pkgdesc="Drawing/editing program modeled after Paint.NET. It's goal is to provide a simplified alternative to GIMP for casual users"
arch=(any)
url="https://pinta-project.com"
license=(MIT)
depends=(libadwaita dotnet-runtime webp-pixbuf-loader)
makedepends=(autoconf-archive git intltool dotnet-sdk)
provides=(pinta)
conflicts=(pinta)
source=("git+https://github.com/PintaProject/Pinta.git")
sha256sums=('SKIP')

pkgver() {
  cd "Pinta"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "Pinta"
  ./autogen.sh
}

build() {
  cd "Pinta"
  LANG=en_US.UTF-8 ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var

  make
}

package() {
  cd "Pinta"
  make DESTDIR="${pkgdir}" install
  install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" license-*.txt
}