X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=PKGBUILD;h=349f28f9d81e59f4855c83f2b41bf3a661febfe0;hb=96d35f72f17e971c8b0c711ea2c186d0b899a730;hp=b68e76f13b117ae84559cc2412ffefc2d5a6acd3;hpb=27aad93a2f5635d9ce9cebbf61b6947f90712151;p=perso%2FImmae%2FConfig%2FAUR.git diff --git a/PKGBUILD b/PKGBUILD index b68e76f..349f28f 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,9 +1,10 @@ -# Maintainer: Gaetan Bisson +# Maintainer: mar77i +# Past Maintainer: Gaetan Bisson # Contributor: Scytrin dai Kinthra pkgname=st-git _pkgname=st -pkgver=20150603.71fa10f +pkgver=20151011.f56c58a pkgrel=1 pkgdesc='Simple virtual terminal emulator for X' url='http://git.suckless.org/st/' @@ -11,10 +12,8 @@ arch=('i686' 'x86_64' 'armv7h') license=('MIT') depends=('libxft') makedepends=('ncurses' 'libxext' 'git') -source=('git://git.suckless.org/st' - 'scrollback.patch') -sha1sums=('SKIP' - '2e10ac47eb020d50c7f861f3923bb4152255a027') +source=('git://git.suckless.org/st') +sha1sums=('SKIP') provides=("${_pkgname}") conflicts=("${_pkgname}") @@ -25,8 +24,8 @@ pkgver() { } prepare() { + local file cd "${srcdir}/${_pkgname}" - patch -p1 -i ../scrollback.patch # http://st.suckless.org/patches/st-scrollback.diff sed \ -e '/char font/s/= .*/= "Fixed:pixelsize=13:style=SemiCondensed";/' \ -e '/char worddelimiters/s/= .*/= " '"'"'`\\\"()[]{}<>|";/' \ @@ -39,6 +38,17 @@ prepare() { -e 's/_BSD_SOURCE/_DEFAULT_SOURCE/' \ -i config.mk sed '/@tic/d' -i Makefile + for file in "${source[@]}"; do + if [[ "$file" == "config.h" ]]; then + # 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 + # add all patches present in source array + patch -Np1 <"$srcdir/$file" + fi + done } build() { @@ -51,5 +61,4 @@ package() { 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 }