summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorblacktea2020-08-20 23:31:26 +0800
committerblacktea2020-08-20 23:31:26 +0800
commit8a7128d57214c259adc571b5e6dae16924c84891 (patch)
tree55ae3ec3796eec273b264c8056d67a5df1d6729a /PKGBUILD
downloadaur-colorthis-git.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..047b50a62e4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: blacktea <blackteahamburger@outlook.com>
+
+pkgname='colorthis-git'
+pkgver=r10.a3f47ea
+pkgrel=1
+pkgdesc="Make your pipe and logfile colorful"
+arch=('x86_64')
+url='https://github.com/Sasasu/ColorThis'
+license=('MIT')
+makedepends=('cmake' 'git')
+provides=('colorthis')
+conflicts=('colorthis')
+source=('colorthis-git::git+https://github.com/Sasasu/ColorThis.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$pkgname"
+ cmake -DCMAKE_INSTALL_PREFIX=/usr .
+ make
+}
+
+package() {
+ cd "$pkgname"
+ make DESTDIR="$pkgdir/" install
+}