X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=PKGBUILD;h=9e924aa7fbd165fe776b565bc4be57841b43cca4;hb=41774076405dcf671a7243299035986863adb67c;hp=6221c6bdeeab345884d1dade4ca5a61ebae4a67e;hpb=dc05f486ca8fd0bf3ef85604125ada81f28ae9d5;p=perso%2FImmae%2FConfig%2FAUR.git diff --git a/PKGBUILD b/PKGBUILD index 6221c6b..9e924aa 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,17 +1,20 @@ -# Maintainer: mar77i +# Maintainer: mar77i # Past Maintainer: Gaetan Bisson # Contributor: Scytrin dai Kinthra pkgname=st-git _pkgname=st -pkgver=20151011.f56c58a +pkgver=0.7.1.g023225e pkgrel=1 pkgdesc='Simple virtual terminal emulator for X' -url='http://git.suckless.org/st/' +url='http://st.suckless.org/' arch=('i686' 'x86_64') license=('MIT') +options=('zipman') depends=('libxft') makedepends=('ncurses' 'libxext' 'git') +epoch=1 +# include config.h and any patches you want to have applied here source=('git://git.suckless.org/st') sha1sums=('SKIP') @@ -20,7 +23,7 @@ conflicts=("${_pkgname}") pkgver() { cd "${_pkgname}" - git log -1 --format='%cd.%h' --date=short | tr -d - + git describe --tags |sed 's/-/./g' } prepare() { @@ -43,10 +46,9 @@ prepare() { # add config.h if present in source array # Note: this supersedes the above sed to config.def.h cp "$srcdir/$file" . - continue - elif [[ "$file" == *.diff ]]; then + elif [[ "$file" == *.diff || "$file" == *.patch ]]; then # add all patches present in source array - patch -Np1 <"$srcdir/$file" + patch -Np1 <"$srcdir/$(basename ${file})" fi done }