diff options
author | Dylan Delgado | 2020-10-15 19:42:14 -0400 |
---|---|---|
committer | Dylan Delgado | 2020-10-15 19:42:14 -0400 |
commit | cf95c510577e9081aaf243ca2c68b370d926c974 (patch) | |
tree | 3641b9ad2b54a8944bcf98f27d0ce762c0d6ca42 /PKGBUILD | |
download | aur-cf95c510577e9081aaf243ca2c68b370d926c974.tar.gz |
First release of mtsieve in AUR, r75
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4e270f9a1478 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +#Maintainer: Dylan Delgado <dylan1496@live.com> + +pkgname=mtsieve +_pkgrev=75 +_srcrev=r${_pkgrev}-trunk +pkgver=2.0.6r${_pkgrev} +_pkgver=2.0.6 +pkgrel=1 +pkgdesc='Library for sieving various types of numbers' +url='https://sourceforge.net/projects/mtsieve/' +license=('GPL') +arch=('x86_64') +depends=('gmp') + +# Static copy of the snapshot file since sourceforge regenerates it on demand. +source=("https://github.com/Dylan1496/mtsieve-source/blob/main/mtsieve-${_pkgver}-${_srcrev}.zip") +sha256sums=('3f7b7e43ac3ced5fb16db73fe11f1ffb20494fad63b4e6f302b8ccd9fd850097') + +prepare() { + cd "${srcdir}/${pkgname}" + sed \ + -e 's/^CPPFLAGS =/CPPFLAGS +=/' \ + -e "/^SVN_VERSION :=/s/=.*/= r${_pkgrev}/" \ + -i makefile +} + +build() { + cd "${srcdir}/${pkgname}" + CPPFLAGS+=' -march=native' + make cpu_all + +} + +package() { + cd "${srcdir}/${pkgname}" + install -Dm755 afsieve "${pkgdir}"/usr/bin/afsieve + install -Dm755 cksieve "${pkgdir}"/usr/bin/cksieve + install -Dm755 dmdsieve "${pkgdir}"/usr/bin/dmdsieve + install -Dm755 fbncsieve "${pkgdir}"/usr/bin/fbncsieve + install -Dm755 fkbnsieve "${pkgdir}"/usr/bin/fkbnsieve + install -Dm755 gfndsieve "${pkgdir}"/usr/bin/gfndsieve + install -Dm755 k1b2sieve "${pkgdir}"/usr/bin/k1b2sieve + install -Dm755 kbbsieve "${pkgdir}"/usr/bin/kbbsieve + install -Dm755 mfsieve "${pkgdir}"/usr/bin/mfsieve + install -Dm755 pixsieve "${pkgdir}"/usr/bin/pixsieve + install -Dm755 psieve "${pkgdir}"/usr/bin/psieve + install -Dm755 sgsieve "${pkgdir}"/usr/bin/sgsieve + install -Dm755 srsieve2 "${pkgdir}"/usr/bin/srsieve2 + install -Dm755 twinsieve "${pkgdir}"/usr/bin/twinsieve + install -Dm755 xyyxsieve "${pkgdir}"/usr/bin/xyyxsieve +}
\ No newline at end of file |