PKGBUILDs/extra/ncmpcpp/PKGBUILD

58 lines
1.9 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
2024-10-24 15:46:44 +00:00
pkgver=0.10.1
2024-09-03 15:55:51 +00:00
pkgrel=1
pkgdesc='Featureful ncurses based MPD client inspired by ncmpc'
url='https://github.com/ncmpcpp/ncmpcpp'
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')
2024-09-03 15:55:51 +00:00
source=(git+https://github.com/ncmpcpp/ncmpcpp.git#tag=${pkgver})
2024-10-24 15:46:44 +00:00
sha512sums=('5d8e1ac3de2398977fc251cc193db2a03b5ba8c39813b293f0d4f539bbe0873810de13a2a7e3037e2821058e361eb981debbc266b8d7fbfb91ef8d8a00bbf2b8')
b2sums=('c70a4d6457fd830da7ee8ccfa284071ea01115b86aff87af82ae3ae87e9bd4e897bb3b3fc62e0cafbf5070f1d1f0bf34c3a9c0bbfdcf80f1eefc4d3c0fc15256')
2016-04-09 16:54:28 +00:00
prepare() {
2024-04-02 23:22:45 +00:00
cd ${pkgname}
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}
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: