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')
depends=('libxft')
makedepends=('ncurses' 'libxext' 'git')
-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 "$srcdir/$file" .
continue
+ elif [[ "$file" == *.diff ]]; then
+ # add all patches present in source array
+ patch -Np1 <"$srcdir/$file"
fi
- # add all patches present in source array
- patch -Np1 <"$SRCDEST/$file"
done
}