summaryrefslogtreecommitdiff
path: root/pcr/cc65/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2017-04-04 23:37:46 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2017-04-04 23:37:46 -0300
commit4d05f83ddbb340a80684e47d3d6bcc567a8ecff8 (patch)
tree2d830d4fbf44bc35010822e1cc44ef4e9daec318 /pcr/cc65/PKGBUILD
parent1459ff76309b503167ad9cd76312413f69bfa3d5 (diff)
downloadabslibre-4d05f83ddbb340a80684e47d3d6bcc567a8ecff8.tar.gz
abslibre-4d05f83ddbb340a80684e47d3d6bcc567a8ecff8.tar.bz2
abslibre-4d05f83ddbb340a80684e47d3d6bcc567a8ecff8.zip
cc65: add new package to [pcr]
Diffstat (limited to 'pcr/cc65/PKGBUILD')
-rw-r--r--pcr/cc65/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/pcr/cc65/PKGBUILD b/pcr/cc65/PKGBUILD
new file mode 100644
index 000000000..e06844017
--- /dev/null
+++ b/pcr/cc65/PKGBUILD
@@ -0,0 +1,32 @@
+# Contributor (Arch): Jaroslaw Rosiek <philosoph@interia.pl>
+pkgname=cc65
+pkgver=2.13.3
+pkgrel=3
+pkgdesc="C compiler for 6502 family microprocessors"
+makedepends=('linuxdoc-tools')
+arch=('i686' 'x86_64')
+license=('custom')
+options=('!makeflags') # Does not build with parallel jobs
+url="http://www.cc65.org/"
+source=("ftp://ftp.musoftware.de/pub/uz/cc65/cc65-sources-$pkgver.tar.bz2"
+ "patch-$pkgver.diff"
+ "license")
+sha256sums=('a98a1b69d3fa15551fe7d53d5bebfc5f9b2aafb9642ee14b735587a421e00468'
+ 'b4bf9bba08ec3a8b6bad8e75be98b136556de72beaee3a99016bb20a1bed929c'
+ '4b1eb4cf61617a78256b5225784a73077c238aea02d6b949ef6f1ea06d9b40d3')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -p1 -i "$srcdir/patch-$pkgver.diff"
+}
+
+build() {
+ cd "$srcdir/cc65-$pkgver"
+ make -f make/gcc.mak
+}
+
+package() {
+ cd "$srcdir/cc65-$pkgver"
+ make -f make/gcc.mak DEST_DIR="$pkgdir/" install
+ install -Dm644 "$srcdir/license" "$pkgdir/usr/share/licenses/$pkgname/license"
+}