summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 422f23c5d69b8b3693943199efbf3898f5200c2d (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
# Maintainer: Tianhao Chai <cth451@gmail.com>

pkgname=nbtp
pkgver=0.3.3
pkgrel=1
pkgdesc="NBT parsing library"
arch=(x86_64)
url="https://git.cth451.me/cth451/nbtp"
license=(LGPLv3)
depends=(fmt pybind11 python3)
source=(
"${pkgname}-v${pkgver}.tar.gz::https://git.cth451.me/cth451/nbtp/-/archive/v${pkgver}/nbtp-v${pkgver}.tar.gz"
)
sha512sums=('435466a101622ef978385e65ce57ca6b954e5f48784adb2f2364b77f2e5154d44578079a46d2fa2da6d1e5f0a373b30bda8a6d570ea14539a8628c4cad75b59e')

prepare() {
	tar -xvf ${pkgname}-v${pkgver}.tar.gz
}

build() {
    cd "${srcdir}/${pkgname}-v${pkgver}"
    mkdir -p build
    cd build
    cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
    make -j
}

package() {
    cd "${srcdir}/${pkgname}-v${pkgver}/build"
    make DESTDIR="${pkgdir}" install
}