1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 10:24:26 +01:00

Makefile: Add a proper package rule

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
Ralf Ramsauer 2019-06-14 21:29:27 +02:00
parent e69c314f97
commit b5154faecd
2 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,8 @@ PREFIX ?= /usr
SYSCONFDIR ?= /etc SYSCONFDIR ?= /etc
all: gpio-wait all: gpio-wait
package:
sed -i -r -e "s@(^SYSCONFDIR = ').*('$$)@\1$(SYSCONFDIR)\2@" doorlockd 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@(^PREFIX = ').*('$$)@\1$(PREFIX)\2@" doorlockd
sed -i -r -e "s@(^__version__ = ').*('$$)@\1$(shell cat VERSION)\2@" doorlockd sed -i -r -e "s@(^__version__ = ').*('$$)@\1$(shell cat VERSION)\2@" doorlockd

View File

@ -24,10 +24,11 @@ sha256sums=('SKIP')
build() { build() {
cd "$srcdir/$pkgname/" cd "$srcdir/$pkgname/"
make PREFIX=/usr sysconfdir=/etc make
} }
package() { package() {
cd "$srcdir/$pkgname/" cd "$srcdir/$pkgname/"
make PREFIX=/usr sysconfdir=/etc package
make PREFIX=/usr sysconfdir=/etc DESTDIR="$pkgdir" install make PREFIX=/usr sysconfdir=/etc DESTDIR="$pkgdir" install
} }