diff options
| author | Andrew <saintruler@gmail.com> | 2020-10-04 11:50:49 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2020-10-04 11:50:49 +0400 |
| commit | cdc345634b228680479fdd149a700b2412a892b2 (patch) | |
| tree | 9d0109e722992bfd438a93a3eb162e4982f93c9b | |
Initial commit
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | DEBIAN/control | 8 | ||||
| -rw-r--r-- | Makefile | 31 |
3 files changed, 40 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..36b688f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +smu-* diff --git a/DEBIAN/control b/DEBIAN/control new file mode 100644 index 0000000..5369f21 --- /dev/null +++ b/DEBIAN/control @@ -0,0 +1,8 @@ +Package: smu +Version: 1.5-1 +Provides: smu +Maintainer: Andrew Guschin <saintruler@gmail.com> +Architecture: amd64 +Section: utils +Description: Simple markdown-like compiler +Depends: libc6 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..88a44d0 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +.PHONY: all +.DEFAULT_GOAL: all +all: create build + +VERSION=1.5 +PKG_NAME=smu +PKG_FOLDER=${PKG_NAME}-package +PKG_URL=https://git.vasthecat.ru/${PKG_NAME}.git +SRC=${PKG_NAME}-src + +${SRC}: + git clone "${PKG_URL}" "${SRC}" + +${PKG_FOLDER}: + mkdir -p "${PKG_FOLDER}/usr/bin" + mkdir -p "${PKG_FOLDER}/usr/share/man/man1" + cp -r "DEBIAN" "${PKG_FOLDER}" + +create: ${SRC} ${PKG_FOLDER} + make -C "${SRC}" + cp -f "${SRC}/${PKG_NAME}" "${PKG_FOLDER}/usr/bin" + cp -f "${SRC}/${PKG_NAME}.1" "${PKG_FOLDER}/usr/share/man/man1" + chmod 755 "${PKG_FOLDER}/usr/bin/${PKG_NAME}" + chmod 644 ${PKG_FOLDER}/usr/share/man/man1/${PKG_NAME}.1 + +build: + fakeroot dpkg-deb --build "${PKG_FOLDER}" + +clean: + rm -rf smu-* + |