Add PKGBUILD

This commit is contained in:
Daniil Gentili 2021-10-24 18:35:29 +02:00
parent c47abdc07f
commit 531e796b7b
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 27 additions and 0 deletions

View File

@ -21,6 +21,7 @@ ${LIBRARY}: src/${NAME}.cpp src/${NAME}.hpp
${COMPILER} -shared ${COMPILER_FLAGS} $@ src/${NAME}.cpp ${COMPILER} -shared ${COMPILER_FLAGS} $@ src/${NAME}.cpp
install: ${BINARY} ${LIBRARY} src/${NAME}.hpp src/${NAME}.h install: ${BINARY} ${LIBRARY} src/${NAME}.hpp src/${NAME}.h
${MKDIR} ${DESTDIR}/bin ${DESTDIR}/lib ${DESTDIR}/include
${CP} ${BINARY} ${DESTDIR}/bin ${CP} ${BINARY} ${DESTDIR}/bin
${CP} ${LIBRARY} ${DESTDIR}/lib ${CP} ${LIBRARY} ${DESTDIR}/lib
${CP} src/primemodule.hpp src/primemodule.h src/primemodule-ffi.h ${DESTDIR}/include ${CP} src/primemodule.hpp src/primemodule.h src/primemodule-ffi.h ${DESTDIR}/include

26
PKGBUILD Normal file
View 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
}