Skip to content

Instantly share code, notes, and snippets.

@darealshinji
darealshinji / 0001-add-.a-support.patch
Last active June 7, 2018 14:39
engrampa 1.20.0 patch
https://github.com/mate-desktop/engrampa/commit/499e600d758578eeb8187f92d0c12b36e50f7595
--- a/src/fr-init.c
+++ b/src/fr-init.c
@@ -62,6 +62,7 @@
{ "application/x-7z-compressed-tar", ".tar.7z", N_("Tar compressed with 7z (.tar.7z)"), 0 },
{ "application/x-ace", ".ace", N_("Ace (.ace)"), 0 },
{ "application/x-alz", ".alz", NULL, 0 },
+ { "application/x-ar", ".a", N_("Ar (.a)"), 0 },
{ "application/x-ar", ".ar", N_("Ar (.ar)"), 0 },
#!/bin/bash
set -e
export LANG=C
monopath="/usr/lib/mono/4.5"
file="$1"
need="/tmp/need.log"
out="bundle"
#!/bin/bash
# build-dependencies: mono-devel subversion imagemagick
# build system: Ubuntu 16.04
set -e
set -x
export LANG=C
APP="gMKVExtractGUI"
from_source=yes
app: gMKVExtractGUI
binpatch: false
ingredients:
packages:
- mkvtoolnix
- mono-runtime
- libmono-corlib4.5-cil
- libmono-system-core4.0-cil
- libmono-system-data4.0-cil
@darealshinji
darealshinji / Makefile.mingw
Created May 25, 2018 20:58
build GNU make with mingw32/mxe
_SRCS = \
ar \
arscan \
commands \
default \
dir \
expand \
file \
function \
getloadavg \
#!/bin/bash
# tested on Ubuntu 16.04
set -x
set -e
APP="mkvtoolnix-gui"
VERSION="23.0.0"
jobs="6"
qtversion="5.10.1"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <ierrors.h>
#include <iapi.h>
static int gsdll_stdin(void *instance, char *buf, int len) {
This file is part of MXE. See LICENSE.md for licensing information.
Contains ad hoc patches for cross building.
diff --git a/configure.ac b/configure.ac
index 1111111..2222222 100644
--- a/configure.ac
+++ b/configure.ac
@@ -146,9 +148,16 @@ if test x"$CCAUX" != x"" ; then
echo $AUXFLAGS_MAK_LINE06 >> $AUXFLAGS_MAK.in
make[1]: Entering directory '/home/djcj/mxe'
uname -a
Linux djcj 4.4.0-122-generic #146-Ubuntu SMP Mon Apr 23 15:34:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
git log --pretty=tformat:"%H - %s [%ar] [%d]" -1
8a0bc9f733adfe0563ba0e86de754725b901873d - Update packages.json & build-matrix.html [6 days ago] [ (grafted, HEAD -> master, origin/master, origin/HEAD)]
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial
@darealshinji
darealshinji / bms_win32.cpp
Last active March 15, 2018 19:55
Windows launcher for Black Mesa
// windres bms.res bms_res.o
// g++ -m32 -Wall -O3 -mwindows bms_win32.cpp -o bms.exe bms_res.o -lshlwapi -s
// cl /Ox /EHsc /GS /guard:cf bms_win32.cpp /link /out:bms.exe bms.res user32.lib advapi32.lib shlwapi.lib
#include <windows.h>
#include <shlwapi.h>
#include <stdlib.h>
#include <string.h>
#include <string>