aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 12d7f4c41b05339c282c6560ce8b6a5f4799a5c0 (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
# Maintainer: Abdalaziz Rashid <abdalaziz.rashid@edu.misis.ru> & Maxim Kochurov <maxim.v.kochurov@gmail.com>

author=abdalazizrashid
pkgname=st-hidpi-git
_gitname=st-HiDPI
pkgver=0.r1090.8890fdf
pkgrel=1
pkgdesc='st fork intended for 4K displays'
url='https://github.com/abdalazizrashid/st-HiDPI'
arch=('any')
license=('MIT')
depends=('ncurses' 'libxext' 'git')
makedepends=('git')
conflicts=('st')
provides=('st')

# include config.h and any patches you want to have applied here
source=("git://github.com/$author/$_gitname.git")

md5sums=('SKIP')
sha1sums=('SKIP')
sha256sums=('SKIP')

pkgver() {
    cd "$_gitname"
    printf '0.r%s.%s' \
        "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$_gitname"
    make
}

package() {
    cd "$_gitname"
    make PREFIX=/usr DESTDIR="$pkgdir" install
    mkdir -p "$pkgdir/usr/share/$pkgname"
    cp -a --no-preserve=ownership * "$pkgdir/usr/share/$pkgname"
    chmod -R 777 "$pkgdir/usr/share/$pkgname"
}