summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ee3c1285afa6e3373d18c4e948b57b69c75ded42 (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
# Maintainer: Antoni Spaanderman <56turtle56@gmail.com>

pkgname=pacman-cache-server-git
pkgver=8.0e2cb61.2
pkgrel=1
pkgdesc="Caching pacman mirror for faster downloads at home"
arch=('any')
url=https://github.com/antonilol/pacman-cache-server
license=('MIT')
source=("pacman-cache-server::git+$url" "pacman-cache-server.service")
sha256sums=('SKIP' 'c4b943a9b5db96d777b82d6180025893684f67a29926644e728b274c8df5fe97')
depends=('nodejs' 'npm')
makedepends=('git')

build() {
  cd "$srcdir/pacman-cache-server"
  npm i
  npm run build
}

package() {
  mkdir -p "$pkgdir"/usr/{bin,lib/systemd/system}
  cp -r "$srcdir"/pacman-cache-server "$pkgdir"/usr/lib/"$pkgname"
  cp pacman-cache-server.service "$pkgdir"/usr/lib/systemd/system
}