~alpine/aports

1

[alpine-aports] [PATCH] testing/openocd-git: New aport

Marian Buschsieweke <marian.buschsieweke@ovgu.de>
Details
Message ID
<20190128151451.9542-1-marian.buschsieweke@ovgu.de>
Sender timestamp
1548688491
DKIM signature
missing
Download raw message
Patch: +64 -0
http://openocd.org/
Free and Open On-Chip Debugging, In-System Programming and Boundary-Scan Testing

This package is based upon testing/openocd, but builds the current development
version of OpenOCD instead. As of now, the latest stable version of OpenOCD
(version 0.10.0) is not able to flash nRF52 based boards.
---
 testing/openocd-git/APKBUILD | 64 ++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)
 create mode 100644 testing/openocd-git/APKBUILD

diff --git a/testing/openocd-git/APKBUILD b/testing/openocd-git/APKBUILD
new file mode 100644
index 0000000000..586b3e805a
--- /dev/null
+++ b/testing/openocd-git/APKBUILD
@@ -0,0 +1,64 @@
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
_pkgname=openocd
_commit=7345801b69d2511252d587159bb9758532797233
_jimtcl_commit=a9bf5975fd0f89974d689a2d9ebd0873c8d64787
_libjaylink_commit=8645845c1abebd004e991ba9a7f808f4fd0c608b
pkgname=$_pkgname-git
pkgver=20190128
pkgrel=0
pkgdesc="Free and Open On-Chip Debugging, In-System Programming and Boundary-Scan Testing"
url="http://openocd.org/"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="libftdi1-dev libusb-dev hidapi-dev libtool autoconf automake"
install=""
provides="openocd"

subpackages="$pkgname-dev $pkgname-doc"
source="https://sourceforge.net/code-snapshots/git/o/op/$_pkgname/code.git/$_pkgname-code-$_commit.zip
	jimtcl-$_jimtcl_commit.tar.gz::https://github.com/msteveb/jimtcl/archive/$_jimtcl_commit.tar.gz
	libjaylink-$_libjaylink_commit.tar.gz::https://github.com/syntacore/libjaylink/archive/$_libjaylink_commit.tar.gz
	"
builddir="$srcdir/$_pkgname-code-$_commit"

prepare() {
	default_prepare
	cd "$builddir"
	rmdir jimtcl
	ln -s ../jimtcl-$_jimtcl_commit jimtcl
	rmdir src/jtag/drivers/libjaylink
	ln -s ../../../../libjaylink-$_libjaylink_commit src/jtag/drivers/libjaylink
	./bootstrap
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-werror \
		--enable-cmsis-dap \
		--enable-sysfsgpio \
		--enable-bcm2835gpio
	make
}

check() {
	make -C "$builddir" check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="e518ceebeb069954075a802b33a100922d1a7ca4b0f4eab0e6f0eb7727abe53b24b39a629f9750bcee1245f247220882d52df146afa5b539eddfb06c5da47152  openocd-code-7345801b69d2511252d587159bb9758532797233.zip
26e977d758127bbbd1bb9493ceb693a8253430359147c27ddf0d7d905706e8a54690acaa4558a6efe32170c75387417fa34b8df3cc451c868edebe3af24a16a0  jimtcl-a9bf5975fd0f89974d689a2d9ebd0873c8d64787.tar.gz
43605ff128ce5ed1f9fd94d5cc0f60ad2b730872d3b6cefd71d3884eeac96e4e143b034ca1dea6af6bb9a50dd0fbc42f3f3bcca28c5178ea68cd6c55ce9f1548  libjaylink-8645845c1abebd004e991ba9a7f808f4fd0c608b.tar.gz"
-- 
2.20.1



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Leonardo Arena <rnalrd@gmail.com>
Details
Message ID
<CAGG_d8CLTYXUk35NNFFU=DyvrSakxG1sC9g+gSOvE=kaPN9apw@mail.gmail.com>
In-Reply-To
<20190128151451.9542-1-marian.buschsieweke@ovgu.de> (view parent)
Sender timestamp
1551780845
DKIM signature
missing
Download raw message
Hi,

see few comments below.

On Mon, Jan 28, 2019 at 4:15 PM Marian Buschsieweke <
marian.buschsieweke@ovgu.de> wrote:

> http://openocd.org/
> Free and Open On-Chip Debugging, In-System Programming and Boundary-Scan
> Testing
>
> This package is based upon testing/openocd, but builds the current
> development
> version of OpenOCD instead. As of now, the latest stable version of OpenOCD
> (version 0.10.0) is not able to flash nRF52 based boards.
> ---
>  testing/openocd-git/APKBUILD | 64 ++++++++++++++++++++++++++++++++++++
>  1 file changed, 64 insertions(+)
>  create mode 100644 testing/openocd-git/APKBUILD
>


I believe it needs some refreshing:

Fetching
https://sourceforge.net/code-snapshots/git/o/op/openocd/code.git/openocd-code-7345801b69d2511252d587159bb9758532797233.zip

curl: (22) The requested URL returned error: 404 Not Found


>
> diff --git a/testing/openocd-git/APKBUILD b/testing/openocd-git/APKBUILD
> new file mode 100644
> index 0000000000..586b3e805a
> --- /dev/null
> +++ b/testing/openocd-git/APKBUILD
> @@ -0,0 +1,64 @@
> +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
> +# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
> +_pkgname=openocd
> +_commit=7345801b69d2511252d587159bb9758532797233
> +_jimtcl_commit=a9bf5975fd0f89974d689a2d9ebd0873c8d64787
> +_libjaylink_commit=8645845c1abebd004e991ba9a7f808f4fd0c608b
> +pkgname=$_pkgname-git
> +pkgver=20190128
> +pkgrel=0
> +pkgdesc="Free and Open On-Chip Debugging, In-System Programming and
> Boundary-Scan Testing"
> +url="http://openocd.org/"
> +arch="all"
> +license="GPL"
>

It doesn't look like a valid license ID.


> +depends=""
> +depends_dev=""
> +makedepends="libftdi1-dev libusb-dev hidapi-dev libtool autoconf automake"
> +install=""
> +provides="openocd"
>

Wouldn't it make more sense to name the package "openocd" and use the
snapshot features of abuild?

Thanks!

/eo
Reply to thread Export thread (mbox)