diff options
author | L.G. Sarmiento | 2016-08-01 18:13:11 +0200 |
---|---|---|
committer | L.G. Sarmiento | 2016-08-01 18:13:11 +0200 |
commit | e11142440b4fec87d380160c23cfcb9ab0d77cb8 (patch) | |
tree | 313c3a3b298551a6f37d22d2c18a9a72fdbc9fe8 /PKGBUILD | |
parent | df3f93ef54f33e71fc1298d774094297e4f75bd1 (diff) | |
download | aur-e11142440b4fec87d380160c23cfcb9ab0d77cb8.tar.gz |
PKGBUILD properly set for CVS packages
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 15 insertions, 9 deletions
@@ -1,6 +1,7 @@ # Submitter: L.G. Sarmiento <lgsarmientop-ala-unal.edu.co> pkgname=fityk-git -pkgver=20140531 +_pkgname=fityk +pkgver=r1641.3967c7e pkgrel=1 pkgdesc="A program for nonlinear fitting of analytical functions to data." url="http://fityk.nieto.pl/" @@ -12,16 +13,21 @@ optdepends=('gnuplot: can be used with the CLI') provides=("fityk") options=('!libtool') install="fityk.install" -md5sums=() +source=($_pkgname::git+https://github.com/wojdyr/fityk.git + "fityk.install") +md5sums=('SKIP' + '0f2c2b78511036ea623a9568509bc987') -_gitroot="http://github.com/wojdyr/fityk.git" +#_gitroot="http://github.com/wojdyr/fityk.git" + +pkgver() { + cd ${srcdir}/$_pkgname + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} build() { - [ -d ${srcdir}/${pkgname} ] || mkdir ${srcdir}/${pkgname} - #thanks to masutu and in general the team from the fityk AUR package - #This nowadays is almost identical to that one. - cd ${srcdir}/${pkgname} - git clone --depth 1 $_gitroot . + + cd ${srcdir}/$_pkgname #it doesn't build with sphinx for python3 sed -i 's#sphinx-build#sphinx-build2#' doc/Makefile @@ -33,6 +39,6 @@ build() { } package() { - cd ${srcdir}/${pkgname} + cd ${srcdir}/${_pkgname} make DESTDIR=${pkgdir} install } |