blob: 04b7d7cbe16554d98f667c620bec396986732c7c (
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
32
33
34
35
36
37
38
|
# Maintainer: Chad Kunde <Kunde21@gmail.com>
# Contributor: Matthieu Rakotojaona <matthieu.rakotojaona@gmail.com>
pkgname=paclan
pkgver=0.1.4
pkgrel=1
pkgdesc='Share pacman packages on the LAN. A replacement for pacserve'
arch=('i686' 'x86_64' 'aarch64' 'armv7h' 'armv7l')
url='https://github.com/Kunde21/paclan'
license=('CC0')
makedepends=('git' 'go')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Kunde21/paclan/archive/v${pkgver}.tar.gz")
sha256sums=('576a36c4e39bd30fc684a88ee0999cb79c589bee95fa9932bf0e27a6039440b8')
install=paclan.install
build() {
cd "${pkgname}-${pkgver}"
GOPATH="${srcdir}" GO111MODULE=on go build --trimpath -o paclan
}
package() {
cd "${pkgname}-${pkgver}"
# systemctl service file
install -D -m644 'paclan.service' "$pkgdir/usr/lib/systemd/system/paclan.service"
# paclan binary
install -D -m755 'paclan' "$pkgdir/usr/bin/$pkgname"
# mirrorlist.paclan
install -D -m644 'mirrorlist.paclan' "$pkgdir/etc/pacman.d/mirrorlist.paclan"
# paclan.conf
install -D -m644 'paclan.conf' "$pkgdir/etc/pacman.d/paclan.conf"
# license
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|