blob: 177c96dbcf018be3437ca0415a397b5c2b736257 (
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
|
# Maintainer: devome <evinedeng@hotmail.com>
_pkgname=AriaNg
pkgname="${_pkgname,,}"
pkgver=1.3.7
pkgrel=1
pkgdesc="A modern web frontend making aria2 easier to use."
arch=('any')
url="https://github.com/mayswind/${_pkgname}"
license=('MIT')
makedepends=("npm" "gulp")
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('8e77cc23e4373198b53bee65f2b945cf853e5d69fdfaac28921bf567eb04a8eb')
build() {
cd "${_pkgname}-${pkgver}"
npm install
gulp clean build
}
package() {
cd "${_pkgname}-${pkgver}/dist"
find . -type f -exec install -Dm644 {} "${pkgdir}/usr/share/${pkgname}/"{} \;
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
ln -s "../../${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|