summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 340f1868b1c87ad3fec9c32b43703ef4b910ddeb (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
32
33
34
35
36
# Maintainer: Mees Luten <mees [dot] luten [at] gmail [dot] com>
pkgname=libccsds-git
pkgver=r5.81a0c5e
pkgrel=1
pkgdesc="A library to handle several CCSDS routines"
arch=('x86_64')
url="https://github.com/altillimity/libccsds"
license=('GPLv3')
depends=()
makedepends=('git')
provides=()
conflicts=()
replaces=()
source=("$pkgname"::'git+https://github.com/altillimity/libccsds.git')
sha256sums=("SKIP")

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	#rm -f -r $pkgname
	#mv $pkgname-master $pkgname
	mkdir -p "$pkgname"/build
}

build() {
	cd "$pkgname"/build
	cmake -DCMAKE_INSTALL_PREFIX="${pkgdir}"/usr/local ..
}

package() {
	cd "$pkgname"/build
	make install
}