diff options
author | mar77i <mysatyre@gmail.com> | 2015-06-25 10:50:01 +0200 |
---|---|---|
committer | mar77i <mysatyre@gmail.com> | 2015-06-25 10:50:01 +0200 |
commit | 0df21d831f3d16cf15fcb07b55c962e88fc85143 (patch) | |
tree | d0f5349fd01359841d96dfab10e9bc6bb07d7378 /PKGBUILD | |
parent | 27aad93a2f5635d9ce9cebbf61b6947f90712151 (diff) | |
download | AUR-0df21d831f3d16cf15fcb07b55c962e88fc85143.tar.gz AUR-0df21d831f3d16cf15fcb07b55c962e88fc85143.tar.zst AUR-0df21d831f3d16cf15fcb07b55c962e88fc85143.zip |
automatically apply patches in source array
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -25,8 +25,8 @@ pkgver() { | |||
25 | } | 25 | } |
26 | 26 | ||
27 | prepare() { | 27 | prepare() { |
28 | local file | ||
28 | cd "${srcdir}/${_pkgname}" | 29 | cd "${srcdir}/${_pkgname}" |
29 | patch -p1 -i ../scrollback.patch # http://st.suckless.org/patches/st-scrollback.diff | ||
30 | sed \ | 30 | sed \ |
31 | -e '/char font/s/= .*/= "Fixed:pixelsize=13:style=SemiCondensed";/' \ | 31 | -e '/char font/s/= .*/= "Fixed:pixelsize=13:style=SemiCondensed";/' \ |
32 | -e '/char worddelimiters/s/= .*/= " '"'"'`\\\"()[]{}<>|";/' \ | 32 | -e '/char worddelimiters/s/= .*/= " '"'"'`\\\"()[]{}<>|";/' \ |
@@ -39,6 +39,13 @@ prepare() { | |||
39 | -e 's/_BSD_SOURCE/_DEFAULT_SOURCE/' \ | 39 | -e 's/_BSD_SOURCE/_DEFAULT_SOURCE/' \ |
40 | -i config.mk | 40 | -i config.mk |
41 | sed '/@tic/d' -i Makefile | 41 | sed '/@tic/d' -i Makefile |
42 | for file in "${source[@]}"; do | ||
43 | if [[ "$file" != *.diff ]]; then | ||
44 | continue | ||
45 | fi | ||
46 | # add all patches present in source array | ||
47 | patch -Np1 <"$SRCDEST/$file" | ||
48 | done | ||
42 | } | 49 | } |
43 | 50 | ||
44 | build() { | 51 | build() { |