diff options
author | Eden Rose | 2017-09-11 18:53:52 -0400 |
---|---|---|
committer | Eden Rose | 2017-09-11 18:53:52 -0400 |
commit | 5cfc8e30d704618ceb382330c52ebd6b87b60b6f (patch) | |
tree | ac92feb613e6410f73cf77ec398f484f8bde9343 /PKGBUILD | |
parent | c25e5aec3069e524a2c213502a6224f47f42a164 (diff) | |
download | aur-5cfc8e30d704618ceb382330c52ebd6b87b60b6f.tar.gz |
fixed issue with libtinfo file versioning
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -26,6 +26,11 @@ VER="$(git log -1 --decorate=short | grep ncurses | sed -e 's/ /\n/g' | tail -4 PATCH="$(git log -1 --decorate=short | grep ncurses | sed -e 's/ /\n/g' | tail -1 | head -1)" echo -n $VER+$PATCH } +short-pkgver () { +cd $srcdir/$_pkgname +VER="$(git log -1 --decorate=short | grep ncurses | sed -e 's/ /\n/g' | tail -4 | head -1)" +echo -n $VER +} build() { @@ -65,10 +70,10 @@ package() { # install libtinfo install -d "$pkgdir"/usr/lib - ln -s /usr/lib/libncursesw.so.$pkgver "$pkgdir"/usr/lib/libtinfo.so."$pkgver" - ln -s /usr/lib/libtinfo.so."$pkgver" "$pkgdir"/usr/lib/libtinfo.so - ln -s /usr/lib/libncursesw.a.$pkgver "$pkgdir"/usr/lib/libtinfo.a."$pkgver" - ln -s /usr/lib/libtinfo.a."$pkgver" "$pkgdir"/usr/lib/libtinfo.a + ln -s /usr/lib/libncursesw.so.$short-pkgver "$pkgdir"/usr/lib/libtinfo.so."$short-pkgver" + ln -s /usr/lib/libtinfo.so."$short-pkgver" "$pkgdir"/usr/lib/libtinfo.so + ln -s /usr/lib/libncursesw.a.$short-pkgver "$pkgdir"/usr/lib/libtinfo.a."$short-pkgver" + ln -s /usr/lib/libtinfo.a."$short-pkgver" "$pkgdir"/usr/lib/libtinfo.a } |