blob: 0264f07c73413ea5807824c766c596615628cc31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Mohammad Ashar Khan <ashar786khan@gmail.com>
pkgname=licenser
pkgver=0.50
pkgrel=1
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=('c9cb280bcb5fadab1803ee9b42e46e4bb1ae0c62b955e5894358b75915eb9359')
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/clipp
git submodule add https://github.com/muellan/clipp.git third_party/clipp
}
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
}
|