summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cdeef3a658728669604151d1f740e6c6e1e58b7f (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
# Maintainer: txtsd <aur.archlinux@ihavea.quest>

_pkgname=archosaur
pkgname=${_pkgname}-git
pkgver=1.0.0.r0.g1bc6939
pkgrel=2
pkgdesc="A PKGBUILD management framework for the Arch User Repository"
arch=('any')
url="https://github.com/txtsd/${_pkgname}"
license=('GPL3')
depends=('bash' 'openssh')
makedepends=('git' 'asciidoc')
provides=("${_pkgname}")
conflicts=("${_pkgname}" "${_pkgname}-bin")
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
    cd ${_pkgname}

    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd ${_pkgname}

    make PREFIX=/usr
}

package() {
    cd ${_pkgname}

    make PREFIX=/usr DESTDIR="${pkgdir}" install
}