PKGBUILDs/extra/ncmpcpp/PKGBUILD

69 lines
2.4 KiB
Bash
Raw Normal View History

2016-04-09 16:54:28 +00:00
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2022-10-22 14:43:23 +00:00
# Maintainer: T.J. Townsend <blakkheim@archlinux.org>
2016-04-09 16:54:28 +00:00
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
2023-10-21 12:01:04 +00:00
# Contributor: graysky <therealgraysky AT protonmail DOT com>
2016-04-09 16:54:28 +00:00
# Contributor: Mateusz Herych <heniekk@gmail.com>
# Contributor: Army <uli[dot]armbruster[at]gmail[dot]com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2021-01-10 21:58:29 +00:00
# - configure with --without-lto
2016-04-09 16:54:28 +00:00
pkgname=ncmpcpp
2021-01-24 22:49:53 +00:00
pkgver=0.9.2
2024-04-02 23:22:45 +00:00
pkgrel=17
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')
2024-01-29 21:38:36 +00:00
license=('GPL-2.0-only')
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'
2024-01-07 18:07:30 +00:00
'libboost_thread.so' 'icu' 'libicui18n.so' 'libicuuc.so'
2020-12-21 03:29:52 +00:00
'glibc' 'gcc-libs' 'ncurses' 'libncursesw.so' 'readline' 'libreadline.so' 'taglib')
2024-04-02 23:22:45 +00:00
makedepends=('boost' 'git')
source=(git+https://github.com/ncmpcpp/ncmpcpp.git#tag=${pkgver}
2024-01-29 18:35:55 +00:00
taglib-2.patch)
2024-04-02 23:22:45 +00:00
sha512sums=('e40b19318af5c191a9397fbd337a2e807d945ae06d6bc349c9555c58820f59afba70448b030541754870d30f0fe78630e028611e184c8b25368c734bc51a7c87'
2024-01-29 18:35:55 +00:00
'fff2987f193bb0d0423b32d81d79dda4c8dd451f701b587a3456867387697736381e4e09489ea852f648449c8a0ec9fbb386f74b7207249abf12dfd4a8f54f36')
2024-04-02 23:22:45 +00:00
b2sums=('babc1506eca6dc5bd48e58fabfd42502d33b506b2e600b7aa98126a6deb0d68e14dc692abb0ef5079e3ccf710648f0b82fe1b404303d932f2156104c479442ec'
2024-01-29 18:35:55 +00:00
'7e45e21e493d3da4039ac27f1f3158cdc244b6df369d7a452f770ac068ae2635d60a9ea19f166f3f6eaa5a766f25a6ed76edd83c8700c0f53b492b170b806320')
2016-04-09 16:54:28 +00:00
prepare() {
2024-04-02 23:22:45 +00:00
cd ${pkgname}
2024-01-29 18:35:55 +00:00
patch -p1 -i ../taglib-2.patch
2020-12-21 03:29:52 +00:00
autoreconf -fiv
sed -e 's/CXXFLAGS=/CXXFLAGS+=/' \
-e 's/CPPFLAGS=/CPPFLAGS+=/' \
-e 's/LDFLAGS=/LDFLAGS+=/' \
2024-01-29 21:38:36 +00:00
-e 's/-march=native//' \
2020-12-21 03:29:52 +00:00
-i extras/Makefile
2016-04-09 16:54:28 +00:00
}
build() {
2024-04-02 23:22:45 +00:00
cd ${pkgname}
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
2021-04-17 19:28:52 +00:00
# Work around deprecated TagLib::String::null from TagLib 1.12
CXXFLAGS+=' -Wno-error=deprecated-declarations'
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() {
2024-04-02 23:22:45 +00:00
cd ${pkgname}
2016-04-09 16:54:28 +00:00
make DESTDIR="${pkgdir}" install
install -Dm 755 extras/artist_to_albumartist -t "${pkgdir}/usr/bin"
}
# vim: ts=2 sw=2 et: