diff --git a/Makefile b/Makefile index 026cfd9..94a720a 100644 --- a/Makefile +++ b/Makefile @@ -7,10 +7,12 @@ all: sync $(PACKAGES) dest end $(info TEMPLATES: $(TEMPLATES)) $(info PACKAGES: $(PACKAGES)) +$(info BUILDDIR: $(BUILDDIR)) $(BUILDDIR)/%: srcpkgs/% @echo "Building package: $<" - @rm -rf $(BUILDDIR)/srcpkgs/$< + @echo $(BUILDDIR)/srcpkgs/$< + @rm -rf $(BUILDDIR)/$< @cp -ru $< $(BUILDDIR)/srcpkgs/ @cd $(BUILDDIR) && ./xbps-src clean $< @cd $(BUILDDIR) && ./xbps-src pkg $< @@ -29,7 +31,9 @@ sync: sync-build sync-fetch: test -d $(BUILDDIR) || git clone --depth=1 https://github.com/void-linux/void-packages.git $^ sync-update: sync-fetch + @cd $(BUILDDIR) && git stash >/dev/null 2>&1 @cd $(BUILDDIR) && git pull + @cd $(BUILDDIR) && git stash pop >/dev/null 2>&1 sync-build: sync-update @cd $(BUILDDIR) && ./xbps-src binary-bootstrap sync-clean: diff --git a/srcpkgs/XD/template b/srcpkgs/XD/template index b1f2606..f90d5ce 100644 --- a/srcpkgs/XD/template +++ b/srcpkgs/XD/template @@ -1,6 +1,6 @@ # Template file for 'XD' pkgname=XD -version=4.1 +version=3.3 revision=2 archs="x86_64" makedepends="git libgit2-devel pkg-config" @@ -11,7 +11,7 @@ maintainer="Zachary Scheiman " license="GPL-3.0-or-later" homepage="https://git.squi.bid/XD" distfiles="https://git.squi.bid/squibid/${pkgname}/archive/v${version}.tar.gz" -checksum=f6cc1dcd85748bc85415d1052e861b7c4f959b271d1b6b16b5b1ac4c9f53f4a4 +checksum=40e5c6f4502e3980d92c8eebdd5c02d9cc18067e6e68c35b486ea195b0d9af04 do_build() { make diff --git a/srcpkgs/zig/template b/srcpkgs/zig/template new file mode 100644 index 0000000..f17ea26 --- /dev/null +++ b/srcpkgs/zig/template @@ -0,0 +1,19 @@ +# Template file for 'zig' +pkgname=zig +version=0.15.1 +revision=1 +archs="x86_64" +short_desc="Programming language designed for robustness, optimality, and clarity" +maintainer="Zachary Scheiman " +license="MIT" +homepage="https://ziglang.org" +distfiles="https://ziglang.org/download/${version}/zig-x86_64-linux-${version}.tar.xz" +checksum=c61c5da6edeea14ca51ecd5e4520c6f4189ef5250383db33d01848293bfafe05 + +do_install() { + vdoc doc/langref.html + vlicense LICENSE + vbin zig + vmkdir usr/share/lib + vcopy lib usr/share/lib/zig +}