summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5ccc41fdf92515cd2959384124abb014fd17d0ae (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
# Maintainer : Daniel Bermond < gmail-com: danielbermond >

pkgname=psimd-git
pkgver=r25.90a938f
pkgrel=1
pkgdesc='Header-only library for portable 128-bit SIMD intrinsics (git version)'
arch=('any')
url='https://github.com/Maratyszcza/psimd/'
license=('MIT')
makedepends=('git')
provides=('psimd')
conflicts=('psimd')
source=("$pkgname"::'git+https://github.com/Maratyszcza/psimd.git')
sha256sums=('SKIP')

pkgver() {
    cd "$pkgname"
    
    # git, no tags available
    printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "$pkgname"
    
    # headers
    mkdir -p "${pkgdir}/usr/include"
    install -D -m644 include/*.h "${pkgdir}/usr/include"
    
    # license
    install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}