blob: 8688ed761b7f52dceaad11c7c330432495730712 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
pkgconfdir = $(sysconfdir)/xbs
pkglibexecdir = $(libexecdir)/xbs
libexecs = helper-abs
_helpers = archrelease commitpkg
no-progs = $(libexecs) $(_helpers)
copy_files = $(addsuffix .in,$(_helpers))
install_files = $(addprefix $(DESTDIR)$(pkglibexecdir)/helper-abs.d/,$(_helpers))
pots = $(_helpers)
include ../../common.mk
commitpkg: commitpkg.in
{ \
echo '#!/usr/bin/env bash'; \
echo '. "$$(librelib common)"'; \
echo '. ./PKGBUILD'; \
echo 'repo=$$1; arch=$$2;'; \
sed -n "/== 'any'/,\$$p" $<; \
} > $@
$(DESTDIR)$(pkglibexecdir)/helper-abs.d/%: %
install -Dm755 '$<' '$@'
|