diff options
author | Darren Wu | 2019-02-16 18:43:09 +0800 |
---|---|---|
committer | Darren Wu | 2019-02-16 18:43:09 +0800 |
commit | 9d06303135adee17a0d3cfade9bd773ba51b686d (patch) | |
tree | 477c3f2084fbfbf8ed2448c79b21f888cc2d1153 | |
download | aur-9d06303135adee17a0d3cfade9bd773ba51b686d.tar.gz |
release
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 57 | ||||
-rw-r--r-- | suppress_color_from_help.patch | 31 |
4 files changed, 109 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..15b0b169f154 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = uasm + pkgdesc = free MASM-compatible assembler based on JWasm + pkgver = 2.47.1 + pkgrel = 1 + url = http://www.terraspace.co.uk/uasm.html + arch = x86_64 + license = custom:JWasm License + license = custom:Sybase Open Watcom Public License + source = uasm::git+https://github.com/Terraspace/UASM.git#commit=f36556139c658bb8f970579d6d84497210d10958 + source = suppress_color_from_help.patch + md5sums = SKIP + md5sums = 7a0e3562bfd82b3b9470bc67aaad2b03 + +pkgname = uasm + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..37cb93ba733e --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +* + +!suppress_color_from_help.patch +!PKGBUILD +!.SRCINFO +!.gitignore
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c2143dfc1128 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer: Darren Wu <$(base64 --decode <<<'ZGFycmVuMTk5NzA4MTBAZ21haWwuY29tCg==')> + +pkgname="uasm" +pkgver=2.47.1 +pkgrel=1 +pkgdesc="free MASM-compatible assembler based on JWasm" +arch=('x86_64') +url="http://www.terraspace.co.uk/uasm.html" +license=( + 'custom:JWasm License' + 'custom:Sybase Open Watcom Public License' +) +# options=(!strip debug) +# options=(!strip) +# PKGEXT=.pkg.tar +# source=('uasm::git+https://github.com/Terraspace/UASM.git#branch=v2.47.1') +source=( + 'uasm::git+https://github.com/Terraspace/UASM.git#commit=f36556139c658bb8f970579d6d84497210d10958' + 'suppress_color_from_help.patch' +) +md5sums=( + 'SKIP' + '7a0e3562bfd82b3b9470bc67aaad2b03' +) + + +prepare() { + + # if [ "$(git rev-parse HEAD)"!="f36556139c658bb8f970579d6d84497210d10958" ];then + # echo "Error." + # echo "Branch v2.47.1 should be at f36556139c658bb8f970579d6d84497210d10958." + # exit 1 + # fi + + patch --verbose "$srcdir/$pkgname/errmsg.c" "$srcdir/suppress_color_from_help.patch" + # patch -p1 -i "$srcdir/$pkgname-$pkgver.patch" + +} + +build() { + cd "$srcdir/$pkgname" + # CFLAGS="-g" CXXFLAGS="-g" DEBUG=1 make -f GccUnix.mak + make -f GccUnix.mak +} + + +package() { + cd "$srcdir/$pkgname" + + install -v -Dm755 GccUnixR/uasm "$pkgdir/usr/bin/uasm" + + install -v -dDm755 "$pkgdir/usr/share/doc/uasm" + + install -v -m644 Readme.txt History.txt Doc/* "$pkgdir/usr/share/doc/uasm/" # 7 txts + + install -v -Dm644 License.txt "$pkgdir/usr/share/licenses/$pkgname/License.txt" +} diff --git a/suppress_color_from_help.patch b/suppress_color_from_help.patch new file mode 100644 index 000000000000..7cc83c3702b3 --- /dev/null +++ b/suppress_color_from_help.patch @@ -0,0 +1,31 @@ +--- errmsg.c 2019-02-16 18:24:54.410110160 +0800 ++++ errmsg.c 2019-02-16 18:22:39.476943887 +0800 +@@ -166,8 +166,8 @@ + + SetConsoleTextAttribute(hConsole, screenBufferInfo.wAttributes); + #else +- printf(FGRN("%s"), MsgGetEx(MSG_UASM)); +- printf(FCYN("%s\n"), MsgGetEx(MSG_UASM2)); ++ printf("%s", MsgGetEx(MSG_UASM)); ++ printf("%s\n", MsgGetEx(MSG_UASM2)); + #endif + + return( 4 ); /* return number of lines printed */ +@@ -200,7 +200,7 @@ + #else + for (p = usage2; *p != '\n'; ) { + const char *p2 = p + strlen(p) + 1; +- printf(FYEL("%-20s %s\n"), p, p2); ++ printf("%-20s %s\n", p, p2); + p = p2 + strlen(p2) + 1; + } + #endif +@@ -217,7 +217,7 @@ + #else + for (p = usage; *p != '\n'; ) { + const char *p2 = p + strlen(p) + 1; +- printf(FWHT("%-20s %s\n"), p, p2); ++ printf("%-20s %s\n", p, p2); + p = p2 + strlen(p2) + 1; + } + #endif |