summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1769135769b1226f5cb34f8634cf5e6950864de5 (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
# Maintainer:
# Contributor: Martin Sandsmark <martin.sandsmark@kde.org>

_pkgname="jpeg2png"
pkgname="$_pkgname-git"
pkgver=1.01.r5.g7ae6e42
pkgrel=1
pkgdesc='Silky smooth JPEG decoder'
url="https://github.com/ImageProcessing-ElectronicPublications/jpeg2png"
license=('GPL-3.0-or-later')
arch=('x86_64' 'i686')

depends=(
  'libjpeg'
  'libpng'
)
makedepends=(
  'git'
)

provides=("$_pkgname")
conflicts=("$_pkgname")

_pkgsrc="ipep.jpeg2png"
source=("$_pkgsrc"::"git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgsrc"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$_pkgsrc"
  make
}

package() {
  cd "$_pkgsrc"
  make DESTDIR="$pkgdir" install
}