summaryrefslogtreecommitdiff
path: root/Ports/doom
diff options
context:
space:
mode:
authorLarkin <45925460+larb0b@users.noreply.github.com>2019-09-24 02:56:39 -0400
committerAndreas Kling <awesomekling@gmail.com>2019-09-24 08:56:39 +0200
commit18249b599634be4162b4ddbb32f002c75ee07060 (patch)
treedd7c700f0f0833ffffc782995da3108d82c43a3e /Ports/doom
parentd5f1c57fe2cc7cf863b4c99b4d11460f3b547c2c (diff)
downloadserenity-18249b599634be4162b4ddbb32f002c75ee07060.zip
Ports: Switch to new ports system (#594)
Much redundancy is removed from package scripts with this system. It also supports simple dependency management, uninstalling (through BSD ports style plist files), cleaning up after itself (with clean, clean_dist, clean_all commands), etc.
Diffstat (limited to 'Ports/doom')
-rwxr-xr-xPorts/doom/doom.sh15
-rwxr-xr-xPorts/doom/package.sh8
2 files changed, 8 insertions, 15 deletions
diff --git a/Ports/doom/doom.sh b/Ports/doom/doom.sh
deleted file mode 100755
index dbb5591837..0000000000
--- a/Ports/doom/doom.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-PORT_DIR=SerenityDOOM
-fetch() {
- run_fetch_git "https://github.com/SerenityOS/SerenityDOOM.git"
-}
-configure() {
- echo ""
-}
-build() {
- run_make -C doomgeneric/
-}
-install() {
- run_make_install -C doomgeneric/ DESTDIR="$SERENITY_ROOT"/Root
-}
-. ../.port_include.sh
diff --git a/Ports/doom/package.sh b/Ports/doom/package.sh
new file mode 100755
index 0000000000..a58e8778c2
--- /dev/null
+++ b/Ports/doom/package.sh
@@ -0,0 +1,8 @@
+#!/bin/bash ../.port_include.sh
+port=doom
+workdir=SerenityDOOM-master
+version=serenity-git
+curlopts="-L"
+files="https://github.com/SerenityOS/SerenityDOOM/archive/master.tar.gz doom-git.tar.gz"
+makeopts="-C doomgeneric/"
+installopts="-C doomgeneric/"