summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 276dbc1b6f242914ff06ed1f31908dc3cd8fca37 (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
47
48
# Maintainer:  Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>

_pkgname="ascii-image-converter"
pkgname="${_pkgname}-bin"
pkgver=1.13.1
pkgrel=1
pkgdesc="Convert images into ASCII art and print them out to the console"
arch=('x86_64' 'i686' 'aarch64' 'armv6h')
url="https://github.com/TheZoraiz/${_pkgname}"
license=('Apache-2.0')
depends=('glibc')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
_pkgsrc="${_pkgname}-${pkgver}"
source_x86_64=("${_pkgsrc}-x86_64.tar.gz::${url}/releases/download/v${pkgver}/${_pkgname}_Linux_amd64_64bit.tar.gz")
source_i686=("${_pkgsrc}-i686.tar.gz::${url}/releases/download/v${pkgver}/${_pkgname}_Linux_i386_32bit.tar.gz")
source_aarch64=("${_pkgsrc}-aarch64.tar.gz::${url}/releases/download/v${pkgver}/${_pkgname}_Linux_arm64_64bit.tar.gz")
source_armv6h=("${_pkgsrc}-armv6h.tar.gz::${url}/releases/download/v${pkgver}/${_pkgname}_Linux_armv6_32bit.tar.gz")
sha256sums_x86_64=('5652d8b7ba9efa71837c473d32d223a8a77264bc6e003ae311719a8644df3c56')
sha256sums_i686=('3e9e2f92781f8bac27d3b75813f422f48bf898322836c5219ae1bb00ab46709f')
sha256sums_aarch64=('7b50c9ff641fb8f10e330aa7c4ce047feb6ac0ba3ceaa7df5674e1974439fd71')
sha256sums_armv6h=('b374ef0c2a22a402fc79036c6ae842742b69adddd7f031f5321ae224b0aa9d56')

case "${CARCH}" in
  x86_64)
    _arch="amd64_64bit"
    ;;
  i686)
    _arch="i386_32bit"
    ;;
   aarch64)
    _arch="arm64_64bit"
    ;;
  armv6h)
    _arch="armv6_32bit"
    ;;
  *)
    echo "Unsupported architecture: ${CARCH}"
    exit 1
    ;;
esac

package() {
  cd "${srcdir}/${_pkgname}_Linux_${_arch}"
  install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
  install -Dm644 "README.md"   "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
  install -Dm644 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}