diff options
author | Jonnieey | 2020-10-26 15:27:19 +0300 |
---|---|---|
committer | Jonnieey | 2020-10-26 15:27:19 +0300 |
commit | 876b55818618901c8d16c7b298ad7778a500b3bb (patch) | |
tree | e74640eb3825ba53a2d71e37e50b3d813e180e34 /PKGBUILD | |
parent | 999866797e45e36ab2ca0280376150df8f723e39 (diff) | |
download | aur-876b55818618901c8d16c7b298ad7778a500b3bb.tar.gz |
Remove make from makedepends, add licence, add pkgver function
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -11,13 +11,18 @@ depends=('ncurses' 'ccache' 'cmake' 'gperf' 'help2man' 'readline' 'openssl' 'ncu # depends=('ncurses' 'ccache' 'cmake' 'gperf' 'help2man' 'readline' 'openssl' 'ncurses' 'zlib', 'php', 'clang') #dependancies for slow mode (low memory/RAM systems) -makedepends=('git' 'make') +makedepends=('git') provides=('nchat') conflicts=('nchat') source=("git+$url") md5sums=('SKIP') _install_mode=('normal') #normal or slow +pkgver() { + cd "${srcdir}/${_pkgname}" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + prepare() { cd "${srcdir}/${_pkgname}" sed -i 's|ncursesw/ncurses.h|ncurses.h|' src/ui* src/util.cpp @@ -36,6 +41,8 @@ build() { fi } package() { - cd "${srcdir}/${_pkgname}/build" + cd "${srcdir}/${_pkgname}" + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" + cd build make DESTDIR="${pkgdir}" install } |