summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d722fcc8709a55bd3d7dc46285fbb8eb53790e1d (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
pkgname=libblkmaker
pkgver=0.6.0
pkgrel=1
pkgdesc="MIT-licensed C implementation of getblocktemplate"
arch=(x86_64)
url=https://github.com/bitcoin/libblkmaker
license=(MIT)
depends=(glibc libgcrypt jansson libbase58)
source=("$pkgname-$pkgver.tar.gz::https://github.com/bitcoin/libblkmaker/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('8367852bbcb0e37cfd02cc882448b6bbf816c3a3c284624b435e3e07c79d5ef2')

prepare() {
    cd "$srcdir/$pkgname-$pkgver"
    sh autogen.sh
}
build() {
    cd "$srcdir/$pkgname-$pkgver"
    ./configure \
        --prefix=/usr
    make
}
package() {
    cd "$srcdir/$pkgname-$pkgver"
    DESTDIR="$pkgdir" make install
    install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}