summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2011-09-21 23:18:58 +0200
committerJustin Davis <jrcd83@gmail.com>2011-09-21 23:18:58 +0200
commitd4ad6bae77cfd68d4ac79471ee6f977621fb9b31 (patch)
treefaa5ccc3d3c01efc94a93691df7fc2a3517c29c9 /Makefile
parentc3f405c8f1af4a06661584e12f8449e86389a772 (diff)
downloadgenpkg-d4ad6bae77cfd68d4ac79471ee6f977621fb9b31.tar.gz
genpkg-d4ad6bae77cfd68d4ac79471ee6f977621fb9b31.tar.xz
Refinish PKGBUILD generation.
Adds makepkgbuild script. The call to pbfields is moved from perl-pkg to makepkgbuild. pbfields prints the PKGBUILD header now, too. makepkgbuild is called from the Makefile with the proper env var set. Pretty close to 100% working again.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 068c845..762980f 100644
--- a/Makefile
+++ b/Makefile
@@ -3,12 +3,17 @@ PKGS = $(PWD)/pkg
BIN = $(PWD)/bin
PKGVAR = $(PWD)/var
-.PHONY: checkpkgarg package tweakmeta
+.PHONY: checkpkgarg package tweakmeta PKGBUILD
package: $(PKGS)/$(PKG)/PKGBUILD
# cd "$(PKGS)/$(PKG)"; makepkg --clean
+PKGBUILD: $(PKGS)/$(PKG)/PKGBUILD
+
$(PKGS)/$(PKG)/PKGBUILD: tweakmeta
+ @cd '$(PKGS)/$(PKG)'; \
+ TDIR='$(BIN)/templ' $(BIN)/makepkgbuild >PKGBUILD
+ @echo 'Built pkg/$(PKG)/PKGBUILD.'
tweakmeta: $(PKGS)/$(PKG)/PKGMETA
@if [ -r '$(TWEAKS)/$(PKG)' ]; \
@@ -17,6 +22,7 @@ tweakmeta: $(PKGS)/$(PKG)/PKGMETA
$(BIN)/tweakmeta >PKGMETA.new <'$(TWEAKS)/$(PKG)'; \
mv PKGMETA PKGMETA.old; \
mv PKGMETA.new PKGMETA; \
+ echo 'Tweaked PKGMETA with tweaks/$(PKG)'; \
fi
$(PKGS)/$(PKG)/PKGMETA: prepare