summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 22ad7d70a7b1677e4ffbef788d42c73d09b1aa2d (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.9.10.fix.r0.ga7eb44b
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"
    nimble build -y -d:release --nimbleDir:"${srcdir}/nimble"
}

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