Compare commits
4 commits
671c40c2ec
...
1c5d66e925
| Author | SHA1 | Date | |
|---|---|---|---|
| 1c5d66e925 | |||
| 3163b25439 | |||
| 79e954feb6 | |||
| 74abed2c2e |
2 changed files with 24 additions and 1 deletions
6
Makefile
6
Makefile
|
|
@ -7,10 +7,12 @@ all: sync $(PACKAGES) dest end
|
||||||
|
|
||||||
$(info TEMPLATES: $(TEMPLATES))
|
$(info TEMPLATES: $(TEMPLATES))
|
||||||
$(info PACKAGES: $(PACKAGES))
|
$(info PACKAGES: $(PACKAGES))
|
||||||
|
$(info BUILDDIR: $(BUILDDIR))
|
||||||
|
|
||||||
$(BUILDDIR)/%: srcpkgs/%
|
$(BUILDDIR)/%: srcpkgs/%
|
||||||
@echo "Building package: $<"
|
@echo "Building package: $<"
|
||||||
@rm -rf $(BUILDDIR)/srcpkgs/$<
|
@echo $(BUILDDIR)/srcpkgs/$<
|
||||||
|
@rm -rf $(BUILDDIR)/$<
|
||||||
@cp -ru $< $(BUILDDIR)/srcpkgs/
|
@cp -ru $< $(BUILDDIR)/srcpkgs/
|
||||||
@cd $(BUILDDIR) && ./xbps-src clean $<
|
@cd $(BUILDDIR) && ./xbps-src clean $<
|
||||||
@cd $(BUILDDIR) && ./xbps-src pkg $<
|
@cd $(BUILDDIR) && ./xbps-src pkg $<
|
||||||
|
|
@ -29,7 +31,9 @@ sync: sync-build
|
||||||
sync-fetch:
|
sync-fetch:
|
||||||
test -d $(BUILDDIR) || git clone --depth=1 https://github.com/void-linux/void-packages.git $^
|
test -d $(BUILDDIR) || git clone --depth=1 https://github.com/void-linux/void-packages.git $^
|
||||||
sync-update: sync-fetch
|
sync-update: sync-fetch
|
||||||
|
@cd $(BUILDDIR) && git stash >/dev/null 2>&1
|
||||||
@cd $(BUILDDIR) && git pull
|
@cd $(BUILDDIR) && git pull
|
||||||
|
@cd $(BUILDDIR) && git stash pop >/dev/null 2>&1
|
||||||
sync-build: sync-update
|
sync-build: sync-update
|
||||||
@cd $(BUILDDIR) && ./xbps-src binary-bootstrap
|
@cd $(BUILDDIR) && ./xbps-src binary-bootstrap
|
||||||
sync-clean:
|
sync-clean:
|
||||||
|
|
|
||||||
19
srcpkgs/zig/template
Normal file
19
srcpkgs/zig/template
Normal file
|
|
@ -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 <me@zacharyscheiman.com>"
|
||||||
|
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
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue