Template
1
0
Fork 0
mirror of https://aur.archlinux.org/libancient-git.git synced 2024-12-27 07:06:54 -05:00
libancient-git/PKGBUILD

39 lines
900 B
Text
Raw Permalink Normal View History

2024-10-11 19:01:16 -04:00
# Maintainer: Xavier Moffett (sapphirus at azorium dot net)
_pkgbase=libancient
pkgname=${_pkgbase}-git
2024-10-11 19:04:56 -04:00
pkgver=2.2.0.r8.f25eb99
pkgrel=1
2023-02-05 21:22:57 -05:00
pkgdesc="Decompression routines for ancient formats (Git Version)"
arch=('i686' 'x86_64')
url="https://github.com/temisu/ancient/"
license=('BSD-2-Clause')
conflicts=(${_pkgbase})
provides=(${_pkgbase}=${pkgver})
2024-10-11 19:01:16 -04:00
makedepends=('git' 'autoconf-archive')
source=(${_pkgbase}::git+https://github.com/temisu/ancient.git)
md5sums=('SKIP')
pkgver() {
2024-10-11 19:01:16 -04:00
cd $_pkgbase
echo "$(git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./')"
}
prepare() {
2024-10-11 19:01:16 -04:00
cd $_pkgbase
./autogen.sh
2024-10-11 19:04:56 -04:00
./configure --prefix=/usr LIBANCIENT_CXXFLAGS="-DANCIENT_API_VISIBILITY_DEFAULT -std=c++17"
}
build() {
2024-10-11 19:04:56 -04:00
cd $_pkgbase
2024-10-11 19:01:16 -04:00
make DESTDIR="$pkgdir"
}
package() {
2024-10-11 19:01:16 -04:00
cd $_pkgbase
make DESTDIR="$pkgdir" install
}
2024-10-11 19:01:16 -04:00
# vim:set ts=4 sw=4 et:1