From e2de1ae2abfb78c92c77e252ef07655f06da7122 Mon Sep 17 00:00:00 2001 From: murray Date: Sun, 17 Dec 2023 11:54:18 +0000 Subject: [PATCH] new package: smlfmt-1.1 --- srcpkgs/smlfmt/patches/destdir.patch | 15 +++++++++++++++ srcpkgs/smlfmt/template | 17 +++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 srcpkgs/smlfmt/patches/destdir.patch create mode 100644 srcpkgs/smlfmt/template diff --git a/srcpkgs/smlfmt/patches/destdir.patch b/srcpkgs/smlfmt/patches/destdir.patch new file mode 100644 index 00000000000..51c78706f6f --- /dev/null +++ b/srcpkgs/smlfmt/patches/destdir.patch @@ -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: diff --git a/srcpkgs/smlfmt/template b/srcpkgs/smlfmt/template new file mode 100644 index 00000000000..e05cbd968b7 --- /dev/null +++ b/srcpkgs/smlfmt/template @@ -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 " +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 +}