summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 373d1cb6b1dfad17011cf0618f996b824277c1cc (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
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer : Markus Kitsinger (SwooshyCueb) <root@swooshalicio.us>

pkgname=rapiddisk-dkms
_vermajor=6
_verminor=0
_verrevision=1
pkgver=${_vermajor}.${_verminor}.${_verrevision}
pkgrel=1
pkgdesc="Advanced Linux RAM Drive and Caching kernel modules"
arch=('i686' 'x86_64')
url="http://www.rapiddisk.org/"
license=('GPL2')
depends=('dkms'
         'zlib'
         'cryptsetup')
makedeps=('jansson')
install=${pkgname}.install
_gitcommit=df31a80
source=("git+https://github.com/pkoutoupis/rapiddisk#commit=${_gitcommit}")

md5sums=('SKIP')

build() {
    cd "${srcdir}/rapiddisk"

    # build package
    make DESTDIR=${pkgdir} all
#    pushd src; make DESTDIR=${pkgdir} dkms; popd

    # gzip manpages
    gzip -c doc/${_pkgbase}.1 > doc/${_pkgbase}.1.gz

}

package() {

    cd "${srcdir}/rapiddisk"

    # standard installation
    make DESTDIR=${pkgdir} install

    # Arch's /sbin is a symbolic link to /usr/bin
    mv ${pkgdir}/sbin ${pkgdir}/usr/bin

    # copy documentation
    install -Dm644 -t "${pkgdir}/usr/share/man/man1/" \
        doc/${_pkgbase}.1.gz
    install -Dm644 -t "${pkgdir}/usr/share/doc/${_pkgbase}/" \
        README.md \
        module/${_pkgbase}.txt

}