summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a96f951bfdeced6d9c2d79c26045ee5219fe536a (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: OxidizedToast <aurpkgbuild.rarity326@passinbox.com>
pkgname=cpm-git
_pkgname=cpm
pkgver=1.3.0
pkgrel=1
pkgdesc="A useful tool for managing C and C++ Projects"
arch=('any')
url="https://github.com/vkeshav300/${_pkgname}"
license=('CC0-1.0')
depends=('gcc' 'cmake' 'make' 'rapidjson')
makedepends=('git')
provides=('cpm')    # Allows users to install this in place of another cpm package
conflicts=('cpm')   # Prevents conflicts with a future official cpm package

source=("cpm-${pkgver}.tar.gz::https://github.com/vkeshav300/cpm/archive/refs/tags/v${pkgver}.tar.gz")
md5sums=('SKIP')

build() {
  cd "$srcdir/${_pkgname}-${pkgver}"
  mkdir -p build
  cd build
  cmake .. -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd "$srcdir/${_pkgname}-${pkgver}/build"
  # Manually install the binary as no install rule is provided upstream
  install -Dm755 cpm "$pkgdir/usr/bin/cpm"
}