2018-06-28 11:53:38 +02:00
|
|
|
# Maintainer: Théophile Bastian <contact@tobast.fr>
|
|
|
|
pkgname=libsrk31cxx-git
|
|
|
|
_pkgname="${pkgname%-git}"
|
|
|
|
pkgver=r55.85147ba
|
|
|
|
pkgrel=1
|
|
|
|
provides=($_pkgname)
|
|
|
|
conflicts=($_pkgname)
|
|
|
|
pkgdesc="libsrk31cxx-git by Stephen R. Kell"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://github.com/stephenrkell/libsrk31cxx"
|
|
|
|
license=('?')
|
2018-06-28 18:55:01 +02:00
|
|
|
depends=(libcxxfileno)
|
2018-06-28 11:53:38 +02:00
|
|
|
makedepends=('git' 'make' 'autoconf')
|
|
|
|
install=
|
|
|
|
source=("git+https://github.com/stephenrkell/libsrk31cxx")
|
|
|
|
md5sums=('SKIP')
|
|
|
|
|
2018-06-28 18:55:01 +02:00
|
|
|
prepare() {
|
|
|
|
cd "$srcdir/${_pkgname}"
|
|
|
|
sed -i '1ipkgincludedir=$(includedir)' include/Makefile.am
|
|
|
|
}
|
|
|
|
|
2018-06-28 11:53:38 +02:00
|
|
|
pkgver() {
|
|
|
|
cd "$srcdir/${_pkgname}"
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/${_pkgname}"
|
|
|
|
autoreconf -i
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make -j
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/${_pkgname}"
|
|
|
|
make DESTDIR="$pkgdir/" install
|
|
|
|
}
|