summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCTK2017-06-05 02:52:20 +0200
committerCTK2017-06-05 02:52:20 +0200
commit3f5d8cfb43ef8a16ff558d738bc720e28f93d11b (patch)
treedfc687077e9778080e6b22839280c781b7cf2fb0 /PKGBUILD
downloadaur-3f5d8cfb43ef8a16ff558d738bc720e28f93d11b.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5f65616664f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Contributor: Calimero <calimeroteknik@free.fr>
+pkgname=ctkarch-sysconfig-git
+pkgver=1.0.r15.ge81168c
+pkgrel=1
+pkgdesc='This utility helps with configuring an Arch Linux installation'
+arch=('any')
+url='http://ctkarch.org/git/sysconfig'
+license=('GPL2')
+depends=('dialog')
+makedepends=('git')
+optdepends=('xorg-xinput: support for hot-detecting touchpad capabilities')
+source=('git+http://ctkarch.org/git/sysconfig')
+md5sums=(SKIP)
+
+pkgver() {
+ cd "${srcdir}/sysconfig"
+ git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "${srcdir}/sysconfig"
+ sed -i "s#^resource_folder=.*\$#resource_folder='/usr/share/ctkarch-sysconfig'#" ctkarch-sysconfig
+}
+
+package() {
+ cd "${srcdir}/sysconfig"
+
+ # modules
+ install -d -m755 "${pkgdir}/usr/share"
+ cp -rv share "${pkgdir}/usr/share/ctkarch-sysconfig"
+ find "${pkgdir}/usr" -type f -exec chmod 644 {} +
+ find "${pkgdir}/usr" -type d -exec chmod 755 {} +
+
+ # main executable
+ install -D -m755 ctkarch-sysconfig "${pkgdir}/usr/bin/ctkarch-sysconfig"
+}