mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 02:14:26 +01:00
Makefile: Add a proper package rule
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
parent
e69c314f97
commit
b5154faecd
2
Makefile
2
Makefile
@ -3,6 +3,8 @@ PREFIX ?= /usr
|
||||
SYSCONFDIR ?= /etc
|
||||
|
||||
all: gpio-wait
|
||||
|
||||
package:
|
||||
sed -i -r -e "s@(^SYSCONFDIR = ').*('$$)@\1$(SYSCONFDIR)\2@" doorlockd
|
||||
sed -i -r -e "s@(^PREFIX = ').*('$$)@\1$(PREFIX)\2@" doorlockd
|
||||
sed -i -r -e "s@(^__version__ = ').*('$$)@\1$(shell cat VERSION)\2@" doorlockd
|
||||
|
@ -24,10 +24,11 @@ sha256sums=('SKIP')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname/"
|
||||
make PREFIX=/usr sysconfdir=/etc
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname/"
|
||||
make PREFIX=/usr sysconfdir=/etc package
|
||||
make PREFIX=/usr sysconfdir=/etc DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user