summaryrefslogtreecommitdiff
path: root/pcr/cc65/PKGBUILD
blob: a9787c859eea4ada666415a11cbec33cecf730f7 (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
# Maintainer (AUR): Mike Swanson <mikeonthecomputer@gmail.com>

# parabola changes and rationale:
#  correct used license

pkgname=cc65
pkgver=2.16
pkgrel=1
pkgdesc='C compiler for 6502 family microprocessors'
makedepends=('linuxdoc-tools')
arch=('i686' 'x86_64' 'armv7h')
license=('zlib')
url='https://cc65.github.io/cc65/'
source=(https://github.com/cc65/cc65/archive/V${pkgver}.tar.gz cc65.sh)
sha512sums=('89c61bd2655a466d619cf40f31f65d10e7cead24c04f548c969a79e0a946db239a4fee925708b0621dbdadf4ab1bdb67719c709edd8b989a218f7dc2270862f9'
            'b6304fd3c14955ee14eb1d041f78c933fbd07760cf560f1c9018c0020c466fb754660404d3c59e903668a07c38001eac273a15a883f1fc0eec126cc9b40733b0')

build() {
  cd "$pkgname-$pkgver"

  make
  make doc
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir" prefix=/usr install
  install -Dm644 "../cc65.sh" "$pkgdir/etc/profile.d/cc65.sh"
  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/license"
}