Skip to content

Commit

Permalink
PKGBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
sdellysse committed Dec 3, 2017
1 parent a74b5f2 commit 090449f
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,21 @@ arch=("any")
depends=("nodejs")
makedepends=("npm")
source=("https://github.com/shawndellysse/farch/archive/v${pkgver}.tar.gz")
md5sums=('8a4f9b655a9d110902e4956e79c0b2b8')

build() {
cd "${srcdir}/${pkgname}-${pkgver}"
npm install --production
}

package() {
cd "${srcdir}/${pkgname}-v${pkgver}"

mkdir -p "${pkgdir}/usr"
npm install --production --user root -g --prefix="${pkgdir}/usr"
install -dm755 "${pkgdir}/usr/bin"
install -dm755 "${pkgdir}/usr/share/${pkgname}"


cd "${srcdir}/${pkgname}-${pkgver}"
cp -a . "${pkgdir}/usr/share/${pkgname}"

cd "${pkgdir}/usr/bin"
ln -sf ../share/${pkgname}/bin/* .
}

0 comments on commit 090449f

Please sign in to comment.