Package Details: concord-git v2.2.0.r1.g38dc9b2e-1

Git Clone URL: https://aur.archlinux.org/concord-git.git (read-only, click to copy)
Package Base: concord-git
Description: A Discord API wrapper library made in C
Upstream URL: https://github.com/Cogmasters/concord
Licenses: MIT
Submitter: mrtuxa
Maintainer: mrtuxa
Last Packager: mrtuxa
Votes: 2
Popularity: 0.006476
First Submitted: 2022-10-15 19:32 (UTC)
Last Updated: 2024-04-14 19:08 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

v1993 commented on 2023-08-14 06:05 (UTC)

Static library installed by this package is unusable if LTO is enabled.

Meikk99 commented on 2022-10-16 15:40 (UTC)

pkgname=concord-git
pkgver=v2.2.0.r1.g38dc9b2e
pkgrel=1
pkgdesc="A Discord API wrapper library made in C"
arch=('any')
url="https://github.com/Cogmasters/concord"
license=('MIT')
depends=('curl')
makedepends=('git')
source=("$pkgname"::git+https://github.com/Cogmasters/concord.git#branch=dev)
md5sums=(SKIP)

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

build() {
  cd "$srcdir/$pkgname"
  make
}

package() {
  cd $pkgname
  PREFIX=$pkgdir/usr make install
  install -Dm644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

You really shouldn't be using sudo make in a pkgbuild and -j$(nproc) should probably be set by the user in makepkg.conf. Seeing as this is a git package it should also include a pkgver function.