new package: smlfmt-1.1

This commit is contained in:
murray 2023-12-17 11:54:18 +00:00 committed by Leah Neukirchen
parent 5d6bf9dd65
commit e2de1ae2ab
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,15 @@
diff --git a/Makefile b/Makefile
index 8a8ba9f..85c4303 100644
--- a/Makefile
+++ b/Makefile
@@ -16,8 +16,8 @@ demo.dbg: $(SOURCES)
.PHONY: install
install: smlfmt
- install -d $(PREFIX)/bin/
- install -m 755 smlfmt ${PREFIX}/bin/
+ install -d $(DESTDIR)$(PREFIX)/bin/
+ install -m 755 smlfmt $(DESTDIR)$(PREFIX)/bin/
.PHONY: clean
clean:

17
srcpkgs/smlfmt/template Normal file
View File

@ -0,0 +1,17 @@
# Template file for 'smlfmt'
pkgname=smlfmt
version=1.1.0
revision=1
build_style=gnu-makefile
hostmakedepends="mlton"
short_desc="Custom parser and code formatter for Standard ML"
maintainer="ii8 <murray.calavera@protonmail.com>"
license="MIT"
homepage="https://github.com/shwestrick/smlfmt"
distfiles="https://github.com/shwestrick/smlfmt/archive/refs/tags/v${version}.tar.gz"
checksum=ca957b3a72615d292443742a1b155d180d963e1c4e17d4d2644af4fb53be627f
nocross=yes
post_install() {
vlicense LICENSE
}