summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cc1663f554d682eb109dea4bc862e396e773aa6c (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
# Maintainer: David Li <davidtianli@gmail.com>
pkgname=pax-mc-git
pkgver=1.7.0.r1.ga6f1b3b
pkgrel=1
pkgdesc="The MC modpack manager for professionals. VSC version."
arch=('x86_64')
url="https://github.com/froehlicha/pax"
license=('MIT')
makedepends=('git' 'nim' 'nimble')
provides=('pax-mc')
conflicts=('pax-mc-bin' 'pax-mc')
replaces=()
changelog=
source=("git+https://github.com/froehlichA/pax.git")
sha256sums=('SKIP')

pkgver() {
    cd "pax"
    git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "${srcdir}/pax"
    echo "y" | nimble buildProd --nimbleDir:"${srcdir}/nimble"
}

package() {
    install -d -m755 "${pkgdir}/usr/bin"
    install -m755 "${srcdir}/pax/pax" "${pkgdir}/usr/bin/pax"
}