aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormar77i <mar77i@mar77i.ch>2016-09-03 13:34:17 +0200
committermar77i <mar77i@mar77i.ch>2016-09-03 13:34:17 +0200
commit278ae33272f0cafa397c5da57a29eaf4aa7f609a (patch)
tree603b15496322dcdd1f95fea1a5c7b44bb69053b3
parentdc05f486ca8fd0bf3ef85604125ada81f28ae9d5 (diff)
downloadAUR-278ae33272f0cafa397c5da57a29eaf4aa7f609a.tar.gz
AUR-278ae33272f0cafa397c5da57a29eaf4aa7f609a.tar.zst
AUR-278ae33272f0cafa397c5da57a29eaf4aa7f609a.zip
use -lXrendr, zipman, comment the source array and simplify the source loop, thanks prash
-rw-r--r--PKGBUILD10
1 files changed, 6 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6221c6b..32caae7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,14 +4,16 @@
4 4
5pkgname=st-git 5pkgname=st-git
6_pkgname=st 6_pkgname=st
7pkgver=20151011.f56c58a 7pkgver=20160309.3996461
8pkgrel=1 8pkgrel=1
9pkgdesc='Simple virtual terminal emulator for X' 9pkgdesc='Simple virtual terminal emulator for X'
10url='http://git.suckless.org/st/' 10url='http://git.suckless.org/st/'
11arch=('i686' 'x86_64') 11arch=('i686' 'x86_64')
12license=('MIT') 12license=('MIT')
13options=('zipman')
13depends=('libxft') 14depends=('libxft')
14makedepends=('ncurses' 'libxext' 'git') 15makedepends=('ncurses' 'libxext' 'git')
16# include config.h and any patches you want to have applied here
15source=('git://git.suckless.org/st') 17source=('git://git.suckless.org/st')
16sha1sums=('SKIP') 18sha1sums=('SKIP')
17 19
@@ -36,6 +38,7 @@ prepare() {
36 -e 's/CFLAGS =/CFLAGS +=/g' \ 38 -e 's/CFLAGS =/CFLAGS +=/g' \
37 -e 's/LDFLAGS =/LDFLAGS +=/g' \ 39 -e 's/LDFLAGS =/LDFLAGS +=/g' \
38 -e 's/_BSD_SOURCE/_DEFAULT_SOURCE/' \ 40 -e 's/_BSD_SOURCE/_DEFAULT_SOURCE/' \
41 -e 's/\(-lXft\)/\1 -lXrender/' \
39 -i config.mk 42 -i config.mk
40 sed '/@tic/d' -i Makefile 43 sed '/@tic/d' -i Makefile
41 for file in "${source[@]}"; do 44 for file in "${source[@]}"; do
@@ -43,10 +46,9 @@ prepare() {
43 # add config.h if present in source array 46 # add config.h if present in source array
44 # Note: this supersedes the above sed to config.def.h 47 # Note: this supersedes the above sed to config.def.h
45 cp "$srcdir/$file" . 48 cp "$srcdir/$file" .
46 continue 49 elif [[ "$file" == *.diff || "$file" == *.patch ]]; then
47 elif [[ "$file" == *.diff ]]; then
48 # add all patches present in source array 50 # add all patches present in source array
49 patch -Np1 <"$srcdir/$file" 51 patch -Np1 <"$srcdir/$(basename ${file})"
50 fi 52 fi
51 done 53 done
52} 54}