mirror of
https://github.com/danog/PrimeModule-ext.git
synced 2024-11-26 11:54:39 +01:00
Add PKGBUILD
This commit is contained in:
parent
c47abdc07f
commit
531e796b7b
1
Makefile
1
Makefile
@ -21,6 +21,7 @@ ${LIBRARY}: src/${NAME}.cpp src/${NAME}.hpp
|
||||
${COMPILER} -shared ${COMPILER_FLAGS} $@ src/${NAME}.cpp
|
||||
|
||||
install: ${BINARY} ${LIBRARY} src/${NAME}.hpp src/${NAME}.h
|
||||
${MKDIR} ${DESTDIR}/bin ${DESTDIR}/lib ${DESTDIR}/include
|
||||
${CP} ${BINARY} ${DESTDIR}/bin
|
||||
${CP} ${LIBRARY} ${DESTDIR}/lib
|
||||
${CP} src/primemodule.hpp src/primemodule.h src/primemodule-ffi.h ${DESTDIR}/include
|
||||
|
26
PKGBUILD
Normal file
26
PKGBUILD
Normal file
@ -0,0 +1,26 @@
|
||||
# Maintainer: Daniil Gentili <daniil@daniil.it>
|
||||
|
||||
_repouser=danog
|
||||
_reponame=PrimeModule-ext
|
||||
|
||||
pkgname=primemodule
|
||||
pkgdesc="C++ header-only library, binary and FFI library for factorizing huge (up to 2^63-1) numbers (optimized for huge semiprimes)."
|
||||
pkgver=1.0.0
|
||||
pkgrel=1
|
||||
arch=('any')
|
||||
license=('GPL')
|
||||
|
||||
source=("https://github.com/$_repouser/$_reponame/archive/refs/tags/${pkgver}.tar.gz")
|
||||
sha512sums=('0dc46842c27c4cec27304998a55969093f04903f2bad182e88d5d783a4c4065290d5f0f49e6caec7eaae4c6e50a28c6d6e8e344ab17c655c4839d64bc55389db')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${_reponame}-${pkgver}"
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${_reponame}-${pkgver}"
|
||||
|
||||
make DESTDIR="${pkgdir}/usr" install
|
||||
}
|
Loading…
Reference in New Issue
Block a user