blob: 065bd154f4d4eb92dbd8918a51231d32599cc499 (
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
|
# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
pkgname="git-tui"
pkgver=1.2.0
pkgrel=1
pkgdesc="Collection of human friendly terminal interface for git"
arch=('any')
url="https://github.com/ArthurSonzogni/${pkgname}"
license=('MIT')
makedepends=('cmake>=3.15' 'ftxui>=5.0.0' 'subprocess>=0.4.0')
depends=('glibc' 'gcc-libs' 'git')
_pkgsrc="${pkgname}-${pkgver}"
source=("${_pkgsrc}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('51fc9f55846fddb544f247e4154970c75d794a8523b240a914018eb59143bb91')
build() {
cd "${srcdir}"
cmake \
-G 'Unix Makefiles' \
-B "${_pkgsrc}/build" \
-S "${_pkgsrc}" \
-DCMAKE_BUILD_TYPE:STRING='None' \
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-Wno-dev
cmake --build "${_pkgsrc}/build"
}
package() {
cd "${srcdir}"
DESTDIR="${pkgdir}" cmake --install "${_pkgsrc}/build"
cd "${_pkgsrc}"
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|