]> git.immae.eu Git - perso/Immae/Config/AUR.git/blobdiff - PKGBUILD
make applying of patches and inserting config.h more readable
[perso/Immae/Config/AUR.git] / PKGBUILD
index 872f256a9f2a5635869d60858a247dd2eb1883c9..9924c538b3d9d3c8689e143c3da196c87767999c 100644 (file)
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,10 @@
-# Maintainer: Gaetan Bisson <bisson@archlinux.org>
+# Maintainer: mar77i <mysatyre at gmail dot com>
+# Past Maintainer: Gaetan Bisson <bisson@archlinux.org>
 # Contributor: Scytrin dai Kinthra <scytrin@gmail.com>
 
 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/'
@@ -38,14 +39,15 @@ 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" .
+                       cp "$SRCDEST/$file" .
                        continue
+               elif [[ "$file" == *.diff ]]; then
+                       # add all patches present in source array
+                       patch -Np1 <"$SRCDEST/$file"
                fi
-               # add all patches present in source array
-               patch -Np1 <"$SRCDEST/$file"
        done
 }
 
@@ -59,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
 }