summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b501c02b8097013ba6d74ea8b6baba6c1ddc012 (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
53
# Maintainer: CĂ©lestin Matte aur [at] cmatte dot me
# Contributor: Emil Renner Berthing <esmil@mailme.dk>
# Contributor: Elis Axelsson <etu@failar.nu>

_pkgname=stupidterm
pkgname=${_pkgname}-git
pkgver=v1.r27.g22ab2d4
pkgrel=2
pkgdesc="A Stupid Terminal based on VTE"
arch=("i686" "x86_64" "armv5tel" "armv7l")
url="https://github.com/esmil/stupidterm"
license=("LGPL")
depends=("vte3")
conflicts=("stupidterm" "st")
source=(
    "${_pkgname}::git+https://github.com/esmil/stupidterm.git"
    'st.desktop'
)
md5sums=(
    'SKIP'
    '23b1a68491fef30c9bcbb9459ec67a23'
)
provides=(
    'stupidterm'
)

pkgver() {
    cd "${_pkgname}"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "${_pkgname}"

    make clean
    make release
}

package() {
    cd "${_pkgname}"

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

    # Create paths for .desktop and config
    mkdir -p $pkgdir/usr/share/applications/ $pkgdir/usr/share/stupidterm/

    # Copy .desktop file to package
    cat $srcdir/st.desktop > $pkgdir/usr/share/applications/st.desktop

    # Copy default config file
    cat $srcdir/stupidterm/stupidterm.ini \
        > $pkgdir/usr/share/stupidterm/stupidterm.ini
}