blob: 25be2652690c9cd7ac4b9b3855db7604cf822693 (
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
31
|
# Maintainer: FACT-Finder <ff-dev@omikron.net>
pkgname=snage
pkgver=0.4.3
pkgrel=1
pkgdesc="A tool for managing change logs."
arch=(any)
url="https://github.com/FACT-Finder/snage"
license=('MIT')
depends=('nodejs')
optdepends=('git: git-version provider')
makedepends=('yarn')
source=("$pkgname-$pkgver.tar.gz::https://github.com/FACT-Finder/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('479d48f5fc674a411667f913974393bfdef8a957f71fa4919f11b89d1533dc84')
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/npm/." .
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"
}
|