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:
parent
e69c314f97
commit
b5154faecd
2
Makefile
2
Makefile
@ -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
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user