summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f0c8029953fd666e5eeccf403bee60a46597eff (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
# Maintainer: Gustavo Castro < gustawho [ at ] gmail [ dot ] com > 

pkgname=station-git
pkgver=v1.1.1.r7.gfc3a700
pkgrel=2
pkgdesc="Convergent terminal emulator"
arch=('x86_64')
groups=('maui-apps')
url="https://invent.kde.org/maui/station"
license=('GPL3')
depends=('kio' 'mauikit-git' 'ki18n')
makedepends=('git' 'extra-cmake-modules')
provides=('station')
conflicts=('station')
source=("git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"
  ( 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)"
  )
}

prepare() {
  cd "${pkgname%-git}"
  mkdir build
}

build() {
  cd "${pkgname%-git}/build"
  cmake .. \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib
  make
}
 
package() {
  cd "${pkgname%-git}/build"
  install -d "$pkgdir/usr/share/icons/hicolor/scalable/apps"
  install -Dm644 ../src/assets/station.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/maui-station.svg"
  make DESTDIR="$pkgdir" install
}