summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSainnhepark2020-07-28 16:20:24 +0800
committerSainnhepark2020-07-28 16:20:24 +0800
commitb0184d77eddb98f76c7eb0005129619a7a9d7839 (patch)
treec5255470e37f675d7518611c9b6a35fda1df02ee
parent6a5421d7f4bb2c90649179dc0906ebbe5a7c2a4c (diff)
downloadaur-b0184d77eddb98f76c7eb0005129619a7a9d7839.tar.gz
update build()
-rw-r--r--PKGBUILD10
1 files changed, 8 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 378ac778b59..acf278def2e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -25,10 +25,16 @@ pkgver() {
build() {
cd "${srcdir}/${_extname}"
yarn install --frozen-lockfile
+ yarn pack --frozen-lockfile --production
+ tar xvf *.tgz
+ rm *.tgz
+ cd package
+ yarn install --frozen-lockfile --production
}
package() {
- cd "${srcdir}/${_extname}"
- find lib/*.js package.json -type f -exec \
+ cd "${srcdir}/${_extname}/package"
+ find . -type f -exec \
install -Dm 644 '{}' "${pkgdir}/${_packdir}/{}" \;
+ rm -rf "${srcdir}/${_extname}/package"
}