blob: d5a0b1993c6cc35d5b6c322cf54d980f538f4c0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
TWEAKS = $(PWD)/tweaks
PKGS = $(PWD)/pkg
BIN = $(PWD)/bin
PKGVAR = $(PWD)/var
.PHONY: checkpkgarg package tweakmeta
package: $(PKGS)/$(PKG)/PKGBUILD
# cd "$(PKGS)/$(PKG)"; makepkg --clean
$(PKGS)/$(PKG)/PKGBUILD: tweakmeta
tweakmeta: $(PKGS)/$(PKG)/PKGMETA
$(PKGS)/$(PKG)/PKGMETA: checkpkgarg
@rm -rf tmp
@mkdir tmp
@cd tmp; \
PATH="$$PATH:$(BIN)" METABIN="$(BIN)/metas" PKGVAR="$(PKGVAR)" \
$(BIN)/makepkgmeta $(PKG) >PKGMETA
@rm -rf "$(PKGS)/$(PKG)"
@mv tmp "$(PKGS)/$(PKG)"
@echo 'Created $@.'
checkpkgarg:
.ifndef PKG
@echo 'error: Specify the package name in the PKG variable.' 1>&2
@false
.endif
|