summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcoder31012019-10-26 01:51:26 +0530
committercoder31012019-10-26 02:03:15 +0530
commit81f1d779739c66e396b0f79fabc30597583e57e2 (patch)
tree3304c31e97f9b4ffce95721641e0d4afe955ec5d
downloadaur-81f1d779739c66e396b0f79fabc30597583e57e2.tar.gz
Release licenser 0.11-2
Release licenser 0.11-2 with .SRCINFO
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD45
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..47dce15af2e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = licenser
+ pkgdesc = A License management tool for your Open Source projects.
+ pkgver = 0.11
+ pkgrel = 2
+ url = https://github.com/coder3101/licenser
+ arch = x86_64
+ license = GPL3
+ makedepends = cmake
+ makedepends = git
+ depends = clang
+ source = https://github.com/coder3101/licenser/archive/0.11.tar.gz
+ sha256sums = 4345fa8e2e32f324537508d101303b819239349601b6665a297e16d9842f5da7
+
+pkgname = licenser
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c5511ad0dcf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Mohammad Ashar Khan <ashar786khan@gmail.com>
+
+pkgname=licenser
+pkgver=0.11
+pkgrel=2
+pkgdesc='A License management tool for your Open Source projects.'
+arch=('x86_64')
+url='https://github.com/coder3101/licenser'
+license=('GPL3')
+depends=('clang')
+makedepends=("cmake" "git")
+source=("https://github.com/coder3101/$pkgname/archive/$pkgver.tar.gz")
+sha256sums=('4345fa8e2e32f324537508d101303b819239349601b6665a297e16d9842f5da7')
+
+prepare() {
+ cd $pkgname-$pkgver
+
+# Remove the .git if already exists in the tarball or user has already build it
+# This step makes sure that the submodule we clone in future does not errors out
+# saying " <submodule> index already exists "
+
+if [ -d "./.git" ]
+ then
+ rm -rf .git
+ fi
+
+ git init
+ rm -rf third_party/Lyra
+ git submodule add https://github.com/bfgroup/Lyra.git third_party/Lyra
+}
+
+build() {
+ cd $pkgname-$pkgver
+ cmake -H. -Bbuild \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_CXX_COMPILER=clang++ \
+ -DCMAKE_C_COMPILER=clang \
+ -DENABLE_TESTS=off
+ cmake --build build
+}
+
+package() {
+ cd $pkgname-$pkgver/build
+ make DESTDIR="$pkgdir" install
+}