diff --git a/alarm/v8/PKGBUILD b/alarm/v8-3.16/PKGBUILD similarity index 90% rename from alarm/v8/PKGBUILD rename to alarm/v8-3.16/PKGBUILD index 6b99e28e9..4a35ac572 100644 --- a/alarm/v8/PKGBUILD +++ b/alarm/v8-3.16/PKGBUILD @@ -5,7 +5,8 @@ # older v8 for mongodb -pkgname=v8 +pkgname=v8-3.16 +_pkgname=v8 pkgver=3.16.8.1 pkgrel=1 pkgdesc='Fast and modern javascript engine' @@ -14,15 +15,17 @@ url='http://code.google.com/p/v8' license=('BSD') depends=('gcc-libs') makedepends=('subversion' 'python2') -source=(http://commondatastorage.googleapis.com/chromium-browser-official/$pkgname-$pkgver.tar.bz2) +provides=("v8=${pkgver}") +conflicts=('v8') +source=(http://commondatastorage.googleapis.com/chromium-browser-official/$_pkgname-$pkgver.tar.bz2) sha256sums=('b99ffa913e8f00b8fdb3b58cadf2addbbf60549a5be8d12a6c0b7095a36ac7e0') prepare() { - cd $pkgname-$pkgver + cd $_pkgname-$pkgver # _source="http://v8.googlecode.com/svn/tags/${pkgver}" # svn checkout "$_source" "${srcdir}/v8-${pkgver}" - cd "${srcdir}/${pkgname}-${pkgver}" + cd "${srcdir}/${_pkgname}-${pkgver}" if [ "$CARCH" == "arm" ]; then # we need to override the arch (last one will be used) because @@ -56,21 +59,21 @@ fi } build() { - cd $pkgname-$pkgver + cd $_pkgname-$pkgver # gets gyp make dependencies # make arm.release & arm.debug = just arm make arm.release library=shared snapshot=off vfp3=$VFP3 vfp=$VFP2 werror=no # eo build - cd $srcdir && cp -r $pkgname-$pkgver d8-static-$pkgver + cd $srcdir && cp -r $_pkgname-$pkgver d8-static-$pkgver cd d8-static-$pkgver make arm.release library=static snapshot=off vfp3=$VFP3 vfp=$VFP2 werror=no } # seperated to possibly split v8-debug in the future. package (){ - cd "${srcdir}/${pkgname}-${pkgver}" + cd "${srcdir}/${_pkgname}-${pkgver}" find include -type f \ -exec install -Dm644 {} ${pkgdir}/usr/{} \;