summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPlaton Ryzhikov2020-05-18 19:03:53 +0300
committerPlaton Ryzhikov2020-05-18 19:03:53 +0300
commitba91c7fac2212afee578dc1d5340c3334f432662 (patch)
tree01ecfcadcd6fcde8780aad151adb13c2e3be288b
parente6b6b49f957c8837ab986d0eefb69691794a7aca (diff)
downloadaur-ba91c7fac2212afee578dc1d5340c3334f432662.tar.gz
use dynamic linking
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD8
-rw-r--r--config.mk20
3 files changed, 30 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 44b014b3a21..9cf2d7a9845 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,23 @@
pkgbase = nldev-phkr
pkgdesc = frontend for mdev, replacing the over-engineered udevd
pkgver = 0.3
- pkgrel = 5
+ pkgrel = 6
url = http://git.r-36.net/nldev/
arch = i686
arch = x86_64
+ arch = aarch64
license = MIT
makedepends = git
source = git://git.r-36.net/nldev#commit=e0713f6
source = 0000-change_shell.patch
source = 0001-increase_buffer.patch
+ source = config.mk
source = hook
source = install
md5sums = SKIP
md5sums = f96e7f40e2f4c5378c93c5cc97d4185d
md5sums = 508367c15bf5117870c7dc0765cba2b9
+ md5sums = 1c4dcaf94bebdcb8f47a520776fd9ee0
md5sums = 613a765dc1e0c2f203dbfae452f346ed
md5sums = af9a39fb39a042e10f92257efb159154
diff --git a/PKGBUILD b/PKGBUILD
index 046fbd8afd0..f622f378d01 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,21 +3,23 @@
pkgbase=nldev-phkr
pkgname=nldev
pkgver=0.3
-pkgrel=5
+pkgrel=6
pkgdesc="frontend for mdev, replacing the over-engineered udevd"
url="http://git.r-36.net/nldev/"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'aarch64')
makedepends=(git)
license=('MIT')
_commit=e0713f6
source=("git://git.r-36.net/nldev#commit=$_commit"
"0000-change_shell.patch"
"0001-increase_buffer.patch"
+ 'config.mk'
'hook'
'install')
md5sums=('SKIP'
'f96e7f40e2f4c5378c93c5cc97d4185d'
'508367c15bf5117870c7dc0765cba2b9'
+ '1c4dcaf94bebdcb8f47a520776fd9ee0'
'613a765dc1e0c2f203dbfae452f346ed'
'af9a39fb39a042e10f92257efb159154')
@@ -25,6 +27,8 @@ prepare() {
cd "${srcdir}/${pkgname}"
patch -Np1 -i ../0000-change_shell.patch
patch -Np1 -i ../0001-increase_buffer.patch
+
+ cp ../config.mk ./
}
build() {
diff --git a/config.mk b/config.mk
new file mode 100644
index 00000000000..b4d405bd915
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,20 @@
+# nldev metadata
+NAME = nldev
+VERSION = 0.3
+
+# Customize below to fit your system
+
+# paths
+PREFIX = /usr
+MANPREFIX = ${PREFIX}/share/man
+
+# includes and libs
+INCS = -I. -I/usr/include
+
+# flags
+CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE -D_GNU_SOURCE
+CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
+
+# compiler and linker
+CC = cc
+