diff --git a/testing/mozjs-38/APKBUILD b/testing/mozjs38/APKBUILD
similarity index 97%
rename from testing/mozjs-38/APKBUILD
rename to testing/mozjs38/APKBUILD
index dd9b93c8ce180d082661dffb2b886c7adc3c2758..ed6fc39aaf09d88cad7c95c2e8ff799df800047f 100644
--- a/testing/mozjs-38/APKBUILD
+++ b/testing/mozjs38/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: William Pitcock <nenolod@dereferenced.org>
-pkgname=mozjs-38
+pkgname=mozjs38
 pkgver=38.8.0
-pkgrel=5
+pkgrel=0
 pkgdesc="standalone mozilla javascript engine"
 url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/38"
 arch="all !armhf !armv7"
@@ -9,6 +9,7 @@ license="LGPL"
 depends=""
 depends_dev="icu-dev nspr-dev libffi-dev readline-dev"
 makedepends="$depends_dev python2 perl sed"
+replaces="mozjs-38"
 install=""
 subpackages="$pkgname-dev $pkgname-dbg"
 source="https://ftp.mozilla.org/pub/firefox/releases/${pkgver}esr/source/firefox-${pkgver}esr.source.tar.bz2
@@ -21,6 +22,7 @@ builddir="$srcdir/mozilla-esr38"
 _builddir="$builddir/js/src"
 options="!check"
 
+
 build() {
 	cd "$_builddir"
 	SHELL=/bin/ash PYTHON=/usr/bin/python ./configure --prefix=/usr \
diff --git a/testing/mozjs-38/copy-headers.patch b/testing/mozjs38/copy-headers.patch
similarity index 100%
rename from testing/mozjs-38/copy-headers.patch
rename to testing/mozjs38/copy-headers.patch
diff --git a/testing/mozjs-38/fix-fortify-system-wrappers.patch b/testing/mozjs38/fix-fortify-system-wrappers.patch
similarity index 100%
rename from testing/mozjs-38/fix-fortify-system-wrappers.patch
rename to testing/mozjs38/fix-fortify-system-wrappers.patch
diff --git a/testing/mozjs-38/gcc-alignment.patch b/testing/mozjs38/gcc-alignment.patch
similarity index 100%
rename from testing/mozjs-38/gcc-alignment.patch
rename to testing/mozjs38/gcc-alignment.patch
diff --git a/testing/mozjs-38/icu-add-bracket.patch b/testing/mozjs38/icu-add-bracket.patch
similarity index 100%
rename from testing/mozjs-38/icu-add-bracket.patch
rename to testing/mozjs38/icu-add-bracket.patch
diff --git a/testing/mozjs-38/pkg-config-version.patch b/testing/mozjs38/pkg-config-version.patch
similarity index 100%
rename from testing/mozjs-38/pkg-config-version.patch
rename to testing/mozjs38/pkg-config-version.patch