prepare automatic updates

This commit is contained in:
TiynGER 2020-06-14 22:05:04 +02:00
parent 161cf99e22
commit 3f34ff82c4

View File

@ -5,42 +5,44 @@
# Maintainer: Marten Kante <tiyn@martenkante.eu> # Maintainer: Marten Kante <tiyn@martenkante.eu>
pkgname=st-tiyn-git pkgname=st-tiyn-git
pkgver=0.8.3.r40.083167e pkgver=0.8.2
pkgrel=1 pkgrel=1
epoch= epoch=
pkgdesc="This is the st build of tiyn. It includes the alpha, anysize, font2, scrollback patches." pkgdesc="This is the st build of tiyn. It includes a bunch of patches."
arch=(x86_64 i686) arch=('x86_64' 'i686')
url="https://github.com/tiyn/st" url="https://github.com/tiyn/st"
license=('MIT') license=('MIT')
groups=() groups=()
depends=(libxft-bgra) depends=('libxft-bgra')
makedepends=(git) makedepends=(git)
checkdepends=() checkdepends=()
optdepends=() optdepends=()
provides=(st) provides=('st')
conflicts=(st) conflicts=('st')
replaces=(st) replaces=('st')
backup=() backup=()
options=() options=()
install= install=
changelog= changelog=
source=("git+$url") source=("${pkgname}::git+$url")
noextract=() noextract=()
md5sums=('SKIP') md5sums=('SKIP')
validpgpkeys=() validpgpkeys=()
pkgver() { pkgver() {
cd "${_pkgname}" cd "${pkgname}"
printf "0.8.3.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" ( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "0.8.2.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
} }
build() { build() {
cd st cd "${pkgname}"
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
} }
package() { package() {
cd st cd "${pkgname}"
mkdir -p ${pkgdir}/opt/${pkgname} mkdir -p ${pkgdir}/opt/${pkgname}
cp -rf * ${pkgdir}/opt/${pkgname} cp -rf * ${pkgdir}/opt/${pkgname}
make PREFIX=/usr DESTDIR="${pkgdir}" install make PREFIX=/usr DESTDIR="${pkgdir}" install