summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFederico Di Pierro2018-05-01 10:45:35 +0200
committerFederico Di Pierro2018-05-01 10:45:35 +0200
commit9d482380b20fe68ebd649abb01803dc217d90831 (patch)
tree0d5ae483a5a81094d25a69a60482f1bba1219907 /PKGBUILD
downloadaur-9d482380b20fe68ebd649abb01803dc217d90831.tar.gz
Uploaded libmodule 1.0.0 to aur.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
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
+}