summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e77f10ef3d15156baae84f3fe029e189f24d5cb7 (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
37
38
39
# Maintainer: Klaus H. <k-laus@mailbox.org>

pkgname=libasi-git
pkgver=v2.0.4.16.g0c0de320
pkgrel=1
pkgdesc='libasi used by INDI ASI drivers, latest git version.'
url='https://www.indilib.org/index.php?title=Main_Page'
license=(MIT)
arch=(aarch64 i686 x86_64)
depends=()
makedepends=(cmake)
provides=('libasi')
conflicts=('libasi')
source=('git+https://github.com/indilib/indi-3rdparty')
sha512sums=('SKIP')
#options=("")

prepare() {
  mkdir -p build
}

pkgver() {
  cd "indi-3rdparty"
  git describe --long --tags | sed 's/-/./;s/-/./'
}

build() {
  cd build
  cmake -DCMAKE_BUILD_TYPE=Debug \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DUDEVRULES_INSTALL_DIR=/usr/lib/udev/rules.d \
    ../indi-3rdparty/libasi
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir" install
}