summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a775b90807ee1f66e1a5a0ceabc4b8e5bc955c3 (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: Andrew Sun <adsun701@gmail.com>
# Contributor: Eric Le Lay <contact at elelay dot fr>

pkgname=ansifilter
pkgver=2.13
pkgrel=2
pkgdesc="remove or convert ANSI codes to another format"
arch=('i686' 'x86_64')
url="http://www.andre-simon.de/doku/ansifilter/en/ansifilter.php"
license=('GPL3')
depends=('gcc-libs')
source=("http://www.andre-simon.de/zip/${pkgname}-${pkgver}.tar.bz2"
        "ansifilter-flags.patch")
sha256sums=('4022e6d763512cbbadc47264266c8796ee654ebd2f43daca4599d1f0281812c0'
            '2d2feb27f4e07a78c95d423ecea144e225940508004e023d21c8bb67ae77c72a')

prepare() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -Np1 -i "${srcdir}/ansifilter-flags.patch"
}

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make all
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" install
  rm "${pkgdir}/usr/share/doc/ansifilter/COPYING" \
     "${pkgdir}/usr/share/doc/ansifilter/INSTALL"
}