blob: 8cb3bf45b4ea450d7a7e67ad5a94c7ab2f612b93 (
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
25
26
27
28
29
30
|
# Maintainer: FACT-Finder <ff-dev@omikron.net>
pkgname=snage
pkgver=0.0.11
pkgrel=1
pkgdesc="A tool for managing change logs."
arch=(any)
url="https://github.com/FACT-Finder/snage"
license=('MIT')
depends=('nodejs')
makedepends=('yarn')
source=("$pkgname-$pkgver.tar.gz::https://github.com/FACT-Finder/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('76cd2200c977fa3383e96040f250b5bf292d0c9a67a63e186aafe9a0652ad073')
options=(!strip)
package() {
cd "$pkgname-$pkgver"
yarn --frozen-lockfile
BUILD_VERSION=${pkgver} yarn lerna run build
install -d "$pkgdir/usr/lib/$pkgname"
cd "$pkgdir/usr/lib/$pkgname"
cp -a "$srcdir/$pkgname-$pkgver/packages/snage/build/." .
chmod +x "snage.js"
install -d "$pkgdir/usr/bin"
ln -s "/usr/lib/$pkgname/snage.js" "$pkgdir/usr/bin/$pkgname"
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" "$srcdir/$pkgname-$pkgver/LICENSE"
}
|