summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 01987c6d81cb336887e70d1918afc69bf8171f44 (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
# Maintainer:  Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: Tim Yang <tdy@gmx.com>
# Contributor: Christoph Siegenthaler <csi@gmx.ch>

set -u
pkgname='jp2a'
pkgver='1.0.7'
pkgrel='1'
pkgdesc='A small utility for converting JPG images to ASCII'
arch=('i686' 'x86_64' 'armv7h')
#url='http://jp2a.sourceforge.net/'
url='https://github.com/cslarsen/jp2a'
license=('GPL')
depends=('curl' 'libjpeg')
_github='cslarsen'
_verwatch=("https://github.com/${_github}/${pkgname}/releases.atom" '\s\+<title>v\([0-9\.]\+\)</title>.*' 'f')
source=("jp2a-${pkgver}.tar.gz::https://github.com/cslarsen/jp2a/archive/v${pkgver}.tar.gz")
sha256sums=('e509d8bbf9434afde5c342568b21d11831a61d9942ca8cb1633d4295b7bc5059')

build(){
  set -u
  cd "${pkgname}-${pkgver}"
  if [ ! -s 'Makefile' ]; then
    if [ ! -s 'configure' ]; then
      autoreconf -fi
    fi
    ./configure --prefix='/usr'
  fi
  make
  set +u
}

check_disabled() {
  set -u
  cd "${pkgname}-${pkgver}"
  make test
  set +u
}

package(){
  set -u
  cd "${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  set +u
}
set +u