X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=PKGBUILD;h=1bd003de48731d005ec396a44dc156f62cd66b8f;hb=549b41de1c97e612195bb4c06d050009f3e09825;hp=872f256a9f2a5635869d60858a247dd2eb1883c9;hpb=70b10beb56f25de245b7fc5331ebe6f15e95b337;p=perso%2FImmae%2FConfig%2FAUR.git diff --git a/PKGBUILD b/PKGBUILD index 872f256..1bd003d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,16 +1,20 @@ -# Maintainer: Gaetan Bisson +# Maintainer: mar77i +# Past Maintainer: Gaetan Bisson # Contributor: Scytrin dai Kinthra pkgname=st-git _pkgname=st -pkgver=20150603.71fa10f +pkgver=0.7.1.g023225e pkgrel=1 pkgdesc='Simple virtual terminal emulator for X' url='http://git.suckless.org/st/' -arch=('i686' 'x86_64' 'armv7h') +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') @@ -18,13 +22,13 @@ provides=("${_pkgname}") conflicts=("${_pkgname}") pkgver() { - cd "${srcdir}/${_pkgname}" - git log -1 --format='%cd.%h' --date=short | tr -d - + cd "${_pkgname}" + git describe --tags |sed 's/-/./g' } prepare() { local file - cd "${srcdir}/${_pkgname}" + cd "${_pkgname}" sed \ -e '/char font/s/= .*/= "Fixed:pixelsize=13:style=SemiCondensed";/' \ -e '/char worddelimiters/s/= .*/= " '"'"'`\\\"()[]{}<>|";/' \ @@ -38,26 +42,25 @@ prepare() { -i config.mk sed '/@tic/d' -i Makefile for file in "${source[@]}"; do - if [[ "$file" != *.diff ]]; then + if [[ "$file" == "config.h" ]]; then # add config.h if present in source array # Note: this supersedes the above sed to config.def.h - [[ "$file" == "config.h" ]] && cp "$SRCDEST/$file" . - continue + cp "$srcdir/$file" . + elif [[ "$file" == *.diff || "$file" == *.patch ]]; then + # add all patches present in source array + patch -Np1 <"$srcdir/$(basename ${file})" fi - # add all patches present in source array - patch -Np1 <"$SRCDEST/$file" done } build() { - cd "${srcdir}/${_pkgname}" + cd "${_pkgname}" make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 } package() { - cd "${srcdir}/${_pkgname}" + cd "${_pkgname}" make PREFIX=/usr DESTDIR="${pkgdir}" install install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 README "${pkgdir}/usr/share/doc/${pkgname}/README" - tic -s -o "${pkgdir}/usr/share/terminfo" st.info }