summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1e42eaeef4743c54d46fe5c8a73ef428547d7fae (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
# Maintainer: vorpalblade77@gmail.com

pkgname=steamcurses-git
_pkgname=${pkgname%-git}
_srcname=SteamCurses
pkgver=r61.0ec79ed
pkgrel=1
pkgdesc="Steam Ncurses for both native and wine versions"
arch=('i686' 'x86_64')
url="https://github.com/TOTBWF/SteamCurses"
license=('MIT')
makedepends_x86_64=('gcc-multilib')
depends=('ncurses' 'steam')
optdepends=('wine: Wine Steam support')
provides=('steamcurses')
conflicts=('steamcurses')
changelog=changelog.txt
install=${pkgname}.install
source=('git+https://github.com/TOTBWF/SteamCurses.git')
sha256sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_srcname}"
    ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
          )
}
build() {
    cd "${srcdir}/${_srcname}"
    make ${MAKEFLAGS}
}

package() {
    # No make install available now
    mkdir --parent "${pkgdir}/usr/bin"
    cp "${srcdir}/${_srcname}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
    mkdir --parent "${pkgdir}/usr/share/licenses/${pkgname}"
    cp "${srcdir}/${_srcname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}"
}