diff options
author | Eric Schulte | 2019-08-28 14:05:08 -0400 |
---|---|---|
committer | Eric Schulte | 2019-08-28 14:07:53 -0400 |
commit | fb038577e812195d54ffac06530f3d8c5d21ad74 (patch) | |
tree | 9783c85d1e3b1d9f4f10a34a168dc71bbdb10059 /PKGBUILD | |
download | aur-libehp-git.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..942683b5f2ce --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Contributor: Eric Schulte <eschulte@grammatech.com> +# Maintainer: Eric Schulte <eschulte@grammatech.com> +_srcname=libehp +pkgname=libehp-git +pkgver=Release_1.0.0.r36.g1896c4f +pkgrel=1 +pkgdesc="Exception handling parsing support for Elf files (eh_frame, etc.)" +arch=('x86_64') +url="https://git.zephyr-software.com/opensrc/libehp" +license=('Apache License 2.0') +optdepends=('elfio: use the elfio library to parse elf files') +makedepends=('git' 'cmake') +provides=('libehp') +source=('git+https://git.zephyr-software.com/opensrc/libehp.git') +sha512sums=('SKIP') + +pkgver() { + cd "$_srcname" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "$_srcname/" + cmake . -DCMAKE_INSTALL_PREFIX=/usr -Bbuild + make -C build +} + +package() { + cd "$_srcname/build" + make DESTDIR="$pkgdir" install +} |