summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Ports/AvailablePorts.md1
-rwxr-xr-xPorts/libuuid/package.sh20
2 files changed, 21 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md
index 4eb695f573..44352c3d9a 100644
--- a/Ports/AvailablePorts.md
+++ b/Ports/AvailablePorts.md
@@ -82,6 +82,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`libtheora`](libtheora/) | libtheora | 1.1.1 | https://www.theora.org/ |
| [`libtiff`](libtiff/) | libtiff | 4.2.0 | http://www.libtiff.org/ |
| [`libtool`](libtool/) | libtool | 2.4 | https://www.gnu.org/software/libtool/ |
+| [`libuuid`](libuuid/) | libuuid (from util-linux) | 2.37.2 | https://github.com/karelzak/util-linux/tree/master/libuuid |
| [`libuv`](libuv/) | libuv | b12699b | https://github.com/libuv/libuv |
| [`libvorbis`](libvorbis/) | libvorbis | 1.3.7 | https://github.com/xiph/vorbis |
| [`libxml2`](libxml2/) | libxml2 | 2.9.12 | http://www.xmlsoft.org/ |
diff --git a/Ports/libuuid/package.sh b/Ports/libuuid/package.sh
new file mode 100755
index 0000000000..c2fd981d8c
--- /dev/null
+++ b/Ports/libuuid/package.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+
+port=libuuid
+version=2.37.2
+workdir="util-linux-${version}"
+useconfigure=true
+configopts="--prefix=/usr/local --disable-all-programs --enable-libuuid"
+files="https://github.com/karelzak/util-linux/archive/refs/tags/v${version}.tar.gz util-linux-${version}.tar.gz 74e725802a6355bba7288caeca171e0e25d9da2aa570162efbc1397ed924dfa2
+https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=2707e389a5c8ec14db468cdc4979864cd57b53f5 config.sub 698198944a59f5915b3f68dc9d642f573aeb8960307493a5693e6b148d5bb4c6"
+auth_type=sha256
+
+pre_configure() {
+ # NOTE: This requires various tools to exist on the host machine (it'll tell you).
+ run ./autogen.sh
+
+ # The generated config.sub is a *symlink* to the host's.
+ # The one from GNU config should be similar enough, and recognizes serenity.
+ run rm -f config/config.sub
+ run cp ../config.sub config
+}