Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id CF387781D42 for <~alpine/aports@lists.alpinelinux.org>; Wed, 21 Oct 2020 20:17:29 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpwn.com; s=key1; t=1603311448; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=pbBZ5CMsHJUwqET7GT9My9Qs5p2VmZa3rDkNEg/yL70=; b=LLC53m7rr9e0zhD9azZ2ROkcgsGEvwp/2O881J/6ZGZOZk1+8EhWn7ptPAI8xNI6nUMr7f FfT/8aN8oAans3gV9cIYXPiVYnBPq9sKuSifGQIUskOGXs1/pLvYlM7hj2gBhtfuY+x8Fv TrzzZtZuYOnQ6dfDwlHzqPmdrdqGUPk8cGVFS03PBdc6+XxJuiNb3bxtIZqkgRbxHFDSf+ Mp/mMWbJRAwH47Q5IbN2aiHE2m1/eiLteq1JU+18fVVO0nWxUZkztpPaGehStZ7It6glMK cCBrRhf3iY6lDIYyptIHDGjdbCK9+WSH2KpG8jejc+DelwmPznQPu++OtvdetQ== From: Drew DeVault To: ~alpine/aports@lists.alpinelinux.org Cc: Drew DeVault Subject: [PATCH] testing/sdcc: new aport Date: Wed, 21 Oct 2020 16:17:24 -0400 Message-Id: <20201021201724.5954-1-sir@cmpwn.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.00 --- testing/sdcc/APKBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 testing/sdcc/APKBUILD diff --git a/testing/sdcc/APKBUILD b/testing/sdcc/APKBUILD new file mode 100644 index 0000000000..51c002d27a --- /dev/null +++ b/testing/sdcc/APKBUILD @@ -0,0 +1,42 @@ +# Maintainer: Drew DeVault +pkgname=sdcc +pkgver=4.0.0 +pkgrel=0 +pkgdesc="Small Device C Compiler" +url="http://sdcc.sourceforge.net/" +arch="all" +license="GPL-2.0-or-later" +makedepends=" + boost-dev + texinfo +" +subpackages="$pkgname-doc" +source="https://downloads.sourceforge.net/project/sdcc/sdcc/$pkgver/sdcc-src-$pkgver.tar.bz2" +options="!check" # no test suite + +build() { + # will add ucim and pic14/16 support if anyone asks nicely + ./configure \ + --prefix=/usr \ + --includedir=/usr/include/sdcc \ + --libdir=/usr/lib/sdcc \ + --disable-non-free \ + --disable-ucsim \ + --disable-pic14-port \ + --disable-pic16-port + make +} + +package() { + make DESTDIR="$pkgdir" install + + if [ -d "$pkgdir"/usr/lib/lib ]; then + mv "$pkgdir"/usr/lib/lib/* "$pkgdir"/usr/lib/sdcc/ + rm -rf "$pkgdir"/usr/lib/lib + fi + + sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' "$pkgdir"/usr/bin/as2gbmap + rm -rf "$pkgdir"/usr/share/info +} + +sha512sums="41a92711a9278261879caec1a01425104b7c75346b3c6ad9617cab025309c9b38f79eea2d04122f5ae6ce273fcd61fbde8a0d23756313a4593394230b51a1d4c sdcc-src-4.0.0.tar.bz2" -- 2.28.0