diff --git a/packages/cortile/cortile.pacscript b/packages/cortile/cortile.pacscript new file mode 100644 index 0000000000..efbedd9720 --- /dev/null +++ b/packages/cortile/cortile.pacscript @@ -0,0 +1,26 @@ +pkgname="cortile" +pkgver="2.5.2" +maintainer=("AJStrong ") +pkgdesc="Linux auto tiling manager with hot corner support" +replaces=("${gives}-bin" "${gives}-git") +arch=('any') +url='https://github.com/leukipp/cortile' +repology=("project: cortile") +source=("cortile-${pkgver}::https://github.com/leukipp/cortile/archive/refs/tags/v${pkgver}.tar.gz") +sha256sums=("6d5ea7c542093c109cbf0b23866aa154f49b7637d2f02d7d0467c38a4f114b01") +makedepends=("golang") + +build() { + cd "cortile-${pkgver}" + go build \ + -trimpath \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -ldflags="-X 'main.flags=disable-dbus-interface,disable-release-info'" +} + +package() { + cd "cortile-${pkgver}" + install -Dm755 "build/$pkgname" "${pkgdir}/usr/bin/${pkgname}" +} \ No newline at end of file