summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e8e2a7446a28f664286293e95e55d272e33acdef (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
# Maintainer: Moritz Poldrack <moritz at poldrack dot dev>
pkgname=nyuu-bin
_pkgname=nyuu
pkgver=0.4.0
pkgrel=1
pkgdesc='Flexible usenet binary posting tool'
arch=('x86_64')
url='https://github.com/animetosho/Nyuu'
license=('Public Domain')
depends=()
provides=('nyuu')
source=("${_pkgname}-${pkgver}.tar.xz::https://github.com/animetosho/Nyuu/releases/download/v${pkgver}/nyuu-v${pkgver}-linux-amd64.tar.xz")
sha256sums=('d3350e5cbfe351019531c39c9f529b8732c542bac1f185b8ecf6d28d18985822')

build() {
    rm -rf "${srcdir}"
    mkdir -p "${srcdir}"
    bsdtar -xf "../${_pkgname}-${pkgver}.tar.xz" -C "${srcdir}"
}

package() {
    mkdir -p "${pkgdir}/usr/bin" \
             "${pkgdir}/opt/nyuu"
    cp ${srcdir}/nyuu               ${pkgdir}/usr/bin/
    cp ${srcdir}/config-sample.json ${pkgdir}/opt/nyuu/
}