summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 95b461f6e49c4459b1ca731207a4ea78e6ff8572 (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: Christian Muehlhaeuser <muesli at gmail dot com>

pkgname=sync3c
pkgver=0.2.0
pkgrel=1
pkgdesc="A little tool to sync/download media from https://media.ccc.de"
arch=('x86_64')
url="https://github.com/muesli/sync3c"
license=('MIT')
makedepends=('go')
source=("https://github.com/muesli/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('9fd4c8ce61454daaa662a04f7f128dca54b31166c6d2f9783926071fc3a6aa6a')

build() {
    cd "$pkgname-$pkgver"
    go build \
        -trimpath \
        -ldflags "-X main.Version=$pkgver -extldflags $LDFLAGS" \
        -o "$pkgname" .
}

package() {
    cd "$pkgname-$pkgver"
    install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
    install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}