Browse Source

prepare automatic updates

master
TiynGER 6 months ago
parent
commit
3f34ff82c4
1 changed files with 14 additions and 12 deletions
  1. +14
    -12
      PKGBUILD

+ 14
- 12
PKGBUILD

@ -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."
arch=(x86_64 i686)
pkgdesc="This is the st build of tiyn. It includes a bunch of patches."
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)
conflicts=(st)
replaces=(st)
provides=('st')
conflicts=('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}"
printf "0.8.3.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
cd "${pkgname}"
( 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

Loading…
Cancel
Save