PKGBUILDs/community/ncmpcpp/PKGBUILD

62 lines
2 KiB
Bash
Raw Normal View History

2016-04-09 16:54:28 +00:00
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: graysky <graysky AT archlinux DOT us>
# Contributor: Mateusz Herych <heniekk@gmail.com>
# Contributor: Army <uli[dot]armbruster[at]gmail[dot]com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - strip -march=native from extras Makefile
2021-01-10 21:58:29 +00:00
# - configure with --without-lto
2016-04-09 16:54:28 +00:00
pkgname=ncmpcpp
2021-01-10 19:34:17 +00:00
pkgver=0.9.1
pkgrel=1
2016-04-09 16:54:28 +00:00
pkgdesc='Almost exact clone of ncmpc with some new features'
2019-10-06 15:44:01 +00:00
url='https://ncmpcpp.rybczak.net/'
2017-11-17 23:37:44 +00:00
arch=('x86_64')
2016-04-09 16:54:28 +00:00
license=('GPL')
2020-12-21 03:29:52 +00:00
depends=('curl' 'libcurl.so' 'libmpdclient' 'libmpdclient.so' 'fftw' 'libfftw3.so' 'boost-libs'
'libboost_filesystem.so' 'libboost_locale.so' 'libboost_program_options.so'
'libboost_regex.so' 'libboost_thread.so' 'icu' 'libicui18n.so' 'libicuuc.so'
'glibc' 'gcc-libs' 'ncurses' 'libncursesw.so' 'readline' 'libreadline.so' 'taglib')
2016-04-09 16:54:28 +00:00
makedepends=('boost')
2020-12-21 03:29:52 +00:00
source=(https://rybczak.net/ncmpcpp/stable/${pkgname}-${pkgver}.tar.bz2)
2021-01-10 19:34:17 +00:00
sha512sums=('8fa9f512ac09c144eab4e4721a9c54f3f411593fe13c26db12fbaa3ccf6b08d7cd54923e1e4148b2db45dc69431280611b2be2d153513c0d38eaf92af8ceb9fb')
b2sums=('89f6a6d68baf54b0a0eca6d3df96dcd5bcd1346e6f93d0a580f2fbbe4b4246218b62e5332f3db2567c9a91ee30ceb367039a328fa7f491c2a756c2c03fed76c3')
2016-04-09 16:54:28 +00:00
prepare() {
cd ${pkgname}-${pkgver}
2020-12-21 03:29:52 +00:00
autoreconf -fiv
2016-04-09 16:54:28 +00:00
sed -i 's/-march=native//' extras/Makefile
2020-12-21 03:29:52 +00:00
sed -e 's/CXXFLAGS=/CXXFLAGS+=/' \
-e 's/CPPFLAGS=/CPPFLAGS+=/' \
-e 's/LDFLAGS=/LDFLAGS+=/' \
-i extras/Makefile
2016-04-09 16:54:28 +00:00
}
build() {
cd ${pkgname}-${pkgver}
2018-03-30 00:01:52 +00:00
# http://site.icu-project.org/download/61#TOC-Migration-Issues
2020-12-21 03:29:52 +00:00
export CPPFLAGS+=' -DU_USING_ICU_NAMESPACE=1'
2018-03-30 00:01:52 +00:00
2017-05-30 17:58:06 +00:00
BOOST_LIB_SUFFIX='' ./configure \
--prefix=/usr \
2016-04-09 16:54:28 +00:00
--enable-clock \
--enable-outputs \
--enable-visualizer \
--with-fftw \
2021-01-10 21:58:29 +00:00
--with-taglib \
--without-lto
2016-04-09 16:54:28 +00:00
make
make -C extras
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
install -Dm 755 extras/artist_to_albumartist -t "${pkgdir}/usr/bin"
}
# vim: ts=2 sw=2 et: