blob: 42c1ce07639bb518875a1f5847212c18b6752c0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Maintainer: Kimiblock Moe
pkgname=nodejs-vite
_pkgname=${pkgname#nodejs-}
pkgdesc="Next generation frontend tooling. It's fast!"
url="https://github.com/vitejs/vite"
license=(MIT)
makedepends=('npm')
noextract=("${_pkgname}-${pkgver}.tgz")
sha256sums=('b2385f966f345223d894a34aca9ab46ce0764a34d80d00f2ac81abe3fa0516e8'
'29b68325fe026047d13e187b44c33b2acacf7dc647dec4583702e59f235e13b5')
arch=(any)
pkgver=5.4.4
pkgrel=1
source=(
"${_pkgname}-${pkgver}.tgz"::"https://registry.npmjs.org/${_pkgname}/-/${_pkgname}-${pkgver}.tgz"
LICENSE::"https://github.com/vitejs/vite/raw/main/LICENSE"
)
function package() {
npm i -g --prefix "${pkgdir}/usr" "${srcdir}/${_pkgname}-${pkgver}.tgz"
find "${pkgdir}" -name package.json -print0 | xargs -r -0 sed -i '/_where/d'
install -Dm755 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|