blob: 8f983797129a34cb81bb5603fc60793f8bbac455 (
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: Syaoran Code <syaorancode@gmail.com>
pkgname=st-syaoran-git
_dir=st-syaoran
pkgver=0.8.4.r36.f2c9a3b
pkgrel=1
pkgdesc="This is my st (suckless/simple terminal) build."
arch=('any')
url="https://gitlab.com/justanoobcoder/st-syaoran.git"
license=('MIT')
depends=(ttf-liberation libxft-bgra-git)
makedepends=(make ncurses libxext git)
provides=(st)
conflicts=(st)
source=("git+$url")
md5sums=('SKIP')
pkgver() {
cd "${_dir}"
printf "%s.r%s.%s" "$(awk '/^VERSION =/ {print $3}' config.mk)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${_dir}"
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}
package() {
cd "${_dir}"
mkdir -p ${pkgdir}/opt/${pkgname}
cp -rf * ${pkgdir}/opt/${pkgname}
make PREFIX=/usr DESTDIR="${pkgdir}" install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_dir}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${_dir}/README.md"
}
|