aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openocd/APKBUILD
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2016-11-18 13:08:59 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2017-04-03 21:21:16 +0200
commitd9acf8f5e55c46941ce9a491ce8812cfbfb750c4 (patch)
treeafdc4e3911a8b167096ba8c0e32b51d508ef1a91 /testing/openocd/APKBUILD
parent24915ff078d4a050cc2168f89080a685d6a4fe29 (diff)
downloadaports-d9acf8f5e55c46941ce9a491ce8812cfbfb750c4.tar.bz2
aports-d9acf8f5e55c46941ce9a491ce8812cfbfb750c4.tar.xz
testing/openocd: new aport
Diffstat (limited to 'testing/openocd/APKBUILD')
-rw-r--r--testing/openocd/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/openocd/APKBUILD b/testing/openocd/APKBUILD
new file mode 100644
index 0000000000..1acf0d429e
--- /dev/null
+++ b/testing/openocd/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Maintainer:
+pkgname=openocd
+pkgver=0.10.0
+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=""
+options="!check"
+makedepends="libftdi1-dev libusb-dev hidapi-dev libtool"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --disable-werror \
+ --enable-cmsis-dap
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="6c890c86c3339da49bd529e8674ca62bc7fce4a2a17798dcc5d70b4f7628b640d856651170a3f7e2e2a120989066e84d8439b56ff42ff2bd72446f9af0f28ba2 openocd-0.10.0.tar.bz2"