diff options
author | Patrick Oppenlander | 2022-06-06 08:54:33 +1000 |
---|---|---|
committer | Patrick Oppenlander | 2022-06-06 08:54:41 +1000 |
commit | f615417fe4410ef429c34e54a894c6d27a740f44 (patch) | |
tree | 95003f4ce1fe1d51358395a88c305f9cd7c3f095 /PKGBUILD | |
parent | b22c750708f96ba1ab0c69f987b5ace564f180cb (diff) | |
download | aur-riscv-openocd-git.tar.gz |
upgpkg: riscv-openocd-git v20180629.r2363.g9906763b8-1
various fixes:
* pkgdatadir didn't match between build & package steps (this means that
the resultant openocd couldn't find it's configuration files)
* man/info wasn't installed (frustrating if this is your only openocd
install)
* prefix didn't't make much sense (this isn't riscv64 or linux or gnu
specific, it's just a fork of openocd and still works for other
architectures)
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -1,8 +1,9 @@ -# Maintainer: Jiuyang Liu <liujiuyang1994@gmail.com> +# Maintainer: Patrick Oppenlander <patrick.oppenlander@gmail.com> +# Contributor: Jiuyang Liu <liujiuyang1994@gmail.com> # Contributor: Emil Renner Berthing <aur@esmil.dk> pkgname=riscv-openocd-git -pkgver=v20180629.r1233.gc116dc50b +pkgver=v20180629.r2363.g9906763b8 pkgrel=1 pkgdesc='Fork of OpenOCD that has RISC-V support' arch=('x86_64') @@ -12,6 +13,7 @@ depends=('libftdi' 'hidapi') makedepends=('git' 'automake>=1.11' 'autoconf' 'libtool') source=("$pkgname::git+https://github.com/riscv/riscv-openocd.git#branch=riscv") sha1sums=('SKIP') +pkgdatadir="/usr/share/riscv-openocd" pkgver() { cd "$srcdir/$pkgname" @@ -26,19 +28,21 @@ prepare() { build() { cd "$srcdir/$pkgname" + # rename info file so we don't clash with a normal openocd install + sed -i 's/openocd.info/riscv-openocd.info/' doc/openocd.texi + ./bootstrap ./configure \ --prefix=/usr \ - --program-prefix=riscv64-linux-gnu- \ + --program-prefix=riscv- \ --disable-werror \ --with-gnu-ld - make pkgdatadir="/usr/share/$pkgname" + make pkgdatadir="$pkgdatadir" } package() { cd "$srcdir/$pkgname" - make pkgdatadir="/usr/riscv64-linux-gnu/share/$pkgname" DESTDIR="$pkgdir" install - rm -r "$pkgdir/usr/share/info" + make pkgdatadir="$pkgdatadir" DESTDIR="$pkgdir" install } |