aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-09-28 13:58:46 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-06-01 16:03:43 +0200
commite3050e325132687149f1a91d668e725311d0996d (patch)
treedef38cd9959803afb43f5f11c032d06bc0a74687 /PKGBUILD
parent41dd9794f34e34b57be986acaf6c4a3845442222 (diff)
downloadpkgbuilds-e3050e325132687149f1a91d668e725311d0996d.tar.xz
ncurses-git: some prodding and poking..
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD19
1 files changed, 7 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index bf61487..fd4c532 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -21,34 +21,30 @@ pkgver() {
git describe --tags | sed 's/^v//; s/-/.r/; s/-/./'
}
-prepare() {
- mkdir ncurses-build
- mkdir ncursesw-build
-}
-
build() {
- cd ncursesw-build
+ mkdir ncurses{,w}-build
+ cd ncursesw-build
# add --enable-ext-colors and --enable-ext-mouse with next soname bump
- ../ncurses/configure --prefix=/usr \
+ ../ncurses/configure \
+ --prefix=/usr \
--with-shared \
--with-normal \
--without-ada \
--enable-widec \
--without-debug \
--enable-pc-files
-
make
# libraries for external binary support
cd "$srcdir"/ncurses-build
-
+ [[ $CARCH = "x86_64" ]] && CONFIGFLAG="--with-chtype=long"
../ncurses/configure --prefix=/usr \
--with-shared \
--with-normal \
--without-ada \
--without-debug \
- --with-chtype=logn
+ $CONFIGFLAG
make
}
@@ -76,6 +72,5 @@ package() {
ln -s lib"$lib".so.5.9 "$pkgdir"/usr/lib/lib"$lib".so.5
done
- cd "$srcdir"/ncurses
- install -Dm755 COPYING "$pkgdir"/usr/share/licenses/ncurses/COPYING
+ install -Dm755 "$srcdir"/ncurses/COPYING "$pkgdir"/usr/share/licenses/ncurses/COPYING
}