summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD34
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fcfc720035a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = libmodule
+ pkgdesc = C linux library to build simple and modular projects
+ pkgver = 1.0.0
+ pkgrel = 1
+ url = https://github.com/FedeDP/libmodule
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = cmake
+ source = libmodule-1.0.0.tar.gz::https://github.com/FedeDP/libmodule/archive/1.0.0.tar.gz
+ sha256sums = SKIP
+
+pkgname = libmodule
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0ef7cab97ea
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Federico Di Pierro <nierro92@gmail.com>
+
+pkgname=libmodule
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="C linux library to build simple and modular projects"
+arch=(x86_64)
+url="https://github.com/FedeDP/${pkgname}"
+license=(GPL)
+depends=()
+makedepends=(git cmake)
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+sha256sums=("SKIP")
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ mkdir -p build
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"/build
+ cmake \
+ -G "Unix Makefiles" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_BUILD_TYPE="Release" \
+ ../
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"/build
+ make DESTDIR="$pkgdir" install
+}