blob: 66625edcf192c031950165ef16839a2028235243 (
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.10
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=('73701ff3f6b6ecaa7010ac4ccacc47a09a39682e7c6ff82330f79ede69081ab0')
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"
}
|