X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=PKGBUILD;h=b9a9f9aeddefdf183e68b0d732ca95cf4adedd02;hb=6ee8125844b2f3ca07a84cb23b0f9d235a65e4c3;hp=9924c538b3d9d3c8689e143c3da196c87767999c;hpb=05baa36be4daf4d131900915f21db125ce2ccbce;p=perso%2FImmae%2FConfig%2FAUR.git diff --git a/PKGBUILD b/PKGBUILD index 9924c53..b9a9f9a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,14 +4,16 @@ pkgname=st-git _pkgname=st -pkgver=20151011.f56c58a +pkgver=20160309.3996461 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') +# include config.h and any patches you want to have applied here source=('git://git.suckless.org/st') sha1sums=('SKIP') @@ -19,13 +21,13 @@ provides=("${_pkgname}") conflicts=("${_pkgname}") pkgver() { - cd "${srcdir}/${_pkgname}" + cd "${_pkgname}" git log -1 --format='%cd.%h' --date=short | tr -d - } prepare() { local file - cd "${srcdir}/${_pkgname}" + cd "${_pkgname}" sed \ -e '/char font/s/= .*/= "Fixed:pixelsize=13:style=SemiCondensed";/' \ -e '/char worddelimiters/s/= .*/= " '"'"'`\\\"()[]{}<>|";/' \ @@ -42,22 +44,21 @@ prepare() { if [[ "$file" == "config.h" ]]; then # add config.h if present in source array # Note: this supersedes the above sed to config.def.h - cp "$SRCDEST/$file" . - continue - elif [[ "$file" == *.diff ]]; then + cp "$srcdir/$file" . + elif [[ "$file" == *.diff || "$file" == *.patch ]]; then # add all patches present in source array - patch -Np1 <"$SRCDEST/$file" + patch -Np1 <"$srcdir/$(basename ${file})" fi 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"