From ec0eb91a7e0e84651e2b5b33be774e27a0fada1a Mon Sep 17 00:00:00 2001 From: Dejvino Date: Mon, 23 Nov 2020 21:10:22 +0100 Subject: [PATCH] Add netevent-git --- repo/dejvino/makepkg.conf | 12 +++++++++++ repo/dejvino/netevent/PKGBUILD | 37 ++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 repo/dejvino/makepkg.conf create mode 100644 repo/dejvino/netevent/PKGBUILD diff --git a/repo/dejvino/makepkg.conf b/repo/dejvino/makepkg.conf new file mode 100644 index 0000000..ede3b3a --- /dev/null +++ b/repo/dejvino/makepkg.conf @@ -0,0 +1,12 @@ +#!/hint/bash +source /etc/makepkg.conf + +CARCH="aarch64" +CHOST="aarch64-pc-linux-gnu" + +#-- Compiler and Linker Flags +CPPFLAGS="-D_FORTIFY_SOURCE=2" +CFLAGS="-march=armv8-a -mtune=generic -O2 -pipe -fno-plt" +CXXFLAGS="-march=armv8-a -mtune=generic -O2 -pipe -fno-plt" +LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" + diff --git a/repo/dejvino/netevent/PKGBUILD b/repo/dejvino/netevent/PKGBUILD new file mode 100644 index 0000000..736ce4b --- /dev/null +++ b/repo/dejvino/netevent/PKGBUILD @@ -0,0 +1,37 @@ +# source: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=netevent-git +_pkgbase=netevent +pkgname=netevent-git +pkgver=ddd330f +pkgrel=1 +pkgdesc="Event device viewing/cloning utility" +url="https://github.com/Blub/netevent" +arch=('aarch64') +license=('GPL') +depends=() +makedepends=('python-docutils') +source=("git+https://github.com/Blub/netevent.git") +sha256sums=('SKIP') + +CROSS_COMPILING='aarch64-linux-gnu-' + +pkgver() { + cd "${srcdir}/netevent" + git describe --always +} + +prepare() { + cd "$srcdir/$_pkgbase" + CXX=${CROSS_COMPILING}g++ ./configure --prefix=/usr +} + +build() { + cd "$srcdir/$_pkgbase" + sed -i 's/-Werror//' ./Makefile + make +} + +package() { + cd "$srcdir/$_pkgbase" + make DESTDIR="$pkgdir" install +} +