summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Severance2018-07-04 12:48:28 -0400
committerChris Severance2018-07-04 12:48:28 -0400
commit7c31402d6412836c7101634453c4d98b1f851a13 (patch)
treeef41ae9321b866134e37639b49dfc20825a6be11
parent60639763ac859f71c32cc64ef5b8af4a78235f5b (diff)
downloadaur-jwasm.tar.gz
autu: Update to 2.13-1 switch to Github
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD32
2 files changed, 19 insertions, 25 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e0b5188cd63..ae0c49e7bb3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,16 @@
+# Generated by mksrcinfo v8
+# Wed Jul 4 16:48:27 UTC 2018
pkgbase = jwasm
pkgdesc = a free MASM-compatible assembler
- pkgver = 212s_140105
+ pkgver = 2.13
pkgrel = 1
- url = http://www.japheth.de/JWasm.html
+ url = https://github.com/JWasm/JWasm
arch = i686
arch = x86_64
license = custom
- makedepends = unzip
depends = glibc
- noextract = JWasm212s_140105.zip
- source = http://sourceforge.net/projects/jwasm/files/JWasm%20Source%20Code/JWasm212s_140105.zip
- sha256sums = 2bef67d89c3d40d228ac2e24e3e41a60cd954cf0f1b7389680f7f03658b78f1c
+ source = JWasm-2.13.tar.gz::https://github.com/JWasm/JWasm/archive/2.13.tar.gz
+ sha256sums = 82bc14860ec1d0552daeffbd202f83f9bba6a2756056b5e21ef81fabdb8e83a4
pkgname = jwasm
diff --git a/PKGBUILD b/PKGBUILD
index ff7ec7f072d..a65c43d6988 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,38 +5,32 @@
set -u
pkgname='jwasm'
#_pkgname='JWasm211as'
-pkgver='212s_140105'
+pkgver='2.13'
pkgrel='1'
pkgdesc='a free MASM-compatible assembler'
arch=('i686' 'x86_64')
-url='http://www.japheth.de/JWasm.html'
+#url='http://www.japheth.de/JWasm.html'
+#url='https://sourceforge.net/projects/jwasm/files/JWasm%20Source%20Code/'
+url='https://github.com/JWasm/JWasm'
license=('custom')
depends=('glibc')
-makedepends=('unzip') # much more reasonable than hd2u or dos2unix
-_verwatch=('http://sourceforge.net/projects/jwasm/files/JWasm%20Source%20Code/' '\s\+JWasm\(.*\)\.zip.*' 'f')
-source=("http://sourceforge.net/projects/jwasm/files/JWasm%20Source%20Code/JWasm${pkgver}.zip")
-noextract=("${source[@]##*/}")
-sha256sums=('2bef67d89c3d40d228ac2e24e3e41a60cd954cf0f1b7389680f7f03658b78f1c')
-
-prepare() {
- set -u
- unzip -oaq -d "${pkgname}" "${noextract[0]}"
- cd "${pkgname}"
- sed -i -e 's:^c_flags =.*$:& -Wno-implicit-function-declaration:g' 'GccUnix.mak'
- test -r 'README.TXT' && mv 'README.TXT' 'Readme.txt'
- set +u
-}
+#_verwatch=('https://sourceforge.net/projects/jwasm/files/JWasm%20Source%20Code/' '\s\+JWasm\(.*\)\.zip.*' 'f')
+_verwatch=("${url}/releases.atom" '\s\+<link rel="alternate" type="text/html" href=".*/'"${url##*/}"'/releases/tag/v*\([^"]\+\)"/>.*' 'f') # RSS
+_srcdir="${url##*/}-${pkgver}"
+source=("${_srcdir}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+sha256sums=('82bc14860ec1d0552daeffbd202f83f9bba6a2756056b5e21ef81fabdb8e83a4')
build() {
set -u
- cd "${pkgname}"
- make -f 'GccUnix.mak' -s -j "$(nproc)"
+ cd "${_srcdir}"
+ local _nproc="$(nproc)"; _nproc=$((_nproc>8?8:_nproc))
+ nice make -f 'GccUnix.mak' -s -j "${_nproc}"
set +u
}
package() {
set -u
- cd "${pkgname}"
+ cd "${_srcdir}"
install -Dpm755 'GccUnixR/jwasm' -t "${pkgdir}/usr/bin/"
install -Dpm644 'History.txt' 'Readme.txt' 'Doc/enh.txt' 'Doc/fixes.txt' 'Doc/gencode.txt' 'Doc/overview.txt' -t "${pkgdir}/usr/share/doc/jwasm/"
install -Dpm644 'License.txt' -t "${pkgdir}/usr/share/licenses/jwasm/"