Add netevent-git

This commit is contained in:
Dejvino 2020-11-23 21:10:22 +01:00
parent 72814fb1bb
commit ec0eb91a7e
2 changed files with 49 additions and 0 deletions

12
repo/dejvino/makepkg.conf Normal file
View File

@ -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"

View File

@ -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
}