{"action":"created","issue":{"url":"https://api.github.com/repos/trizen/trizen/issues/34","repository_url":"https://api.github.com/repos/trizen/trizen","labels_url":"https://api.github.com/repos/trizen/trizen/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/trizen/trizen/issues/34/comments","events_url":"https://api.github.com/repos/trizen/trizen/issues/34/events","html_url":"https://github.com/trizen/trizen/issues/34","id":282695796,"number":34,"title":"Feature Request: Hooks","user":{"login":"doronbehar","id":10998835,"avatar_url":"https://avatars2.githubusercontent.com/u/10998835?v=4","gravatar_id":"","url":"https://api.github.com/users/doronbehar","html_url":"https://github.com/doronbehar","followers_url":"https://api.github.com/users/doronbehar/followers","following_url":"https://api.github.com/users/doronbehar/following{/other_user}","gists_url":"https://api.github.com/users/doronbehar/gists{/gist_id}","starred_url":"https://api.github.com/users/doronbehar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doronbehar/subscriptions","organizations_url":"https://api.github.com/users/doronbehar/orgs","repos_url":"https://api.github.com/users/doronbehar/repos","events_url":"https://api.github.com/users/doronbehar/events{/privacy}","received_events_url":"https://api.github.com/users/doronbehar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-17T14:02:31Z","updated_at":"2017-12-20T15:18:13Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI would like to explain to you my feature request and why I thought about it:\r\n\r\nI've started to use `trizen` after trying out several AUR helpers, among them\r\n- [`yay`](https://github.com/Jguer/yay), which I liked it's search and it's command line interface which is similar to `pacman`'s.\r\n- [`aurutils`](https://github.com/AladW/aurutils), which I liked it's non monolithic approach and it taught me a lot about the whole ABS and it made me configure my `makepkg.conf` and create a `custom` database with [`repoctl`](https://github.com/cassava/repoctl) - just as described in the [`aurutils`'s man-page](https://github.com/AladW/aurutils/blob/master/man7/aurutils.7) and [it's WiKi](https://github.com/AladW/aurutils/wiki/aurutils(7)).\r\n\r\nIMO, `aurutils` is not very mature yet in terms of general user interface and conviniency. I don't use any of the commands `aurutils` provides besides `aursync` and `aursearch` which provide a functionality provided by most other AUR helpers like `trizen` and `yay`. The only difference between `aursync` and other AUR helpers is that when you install a package with `aursync`, it updates the `custom` database afterwards and it syncs `pacman`'s repositories including the `custom` database after every build.\r\n\r\nIt is explained in more details in [`man:aurutils(7)`](https://github.com/AladW/aurutils/blob/master/man7/aurutils.7).\r\n\r\nI think `trizen` is much more mature than `aurutils` and it is written much better IMO (I really like `trizen`'s search). So it made me ask my self, why do I need `aurutils`? I can use `trizen`'s configuration option `clone_dir` just like `aursync`'s `$AURDEST` (https://github.com/AladW/aurutils/blob/master/man1/aursync.1#L119). The only missing piece for `trizen` is the `custom` database - ['Creating a local repository' - https://github.com/AladW/aurutils/blob/master/man7/aurutils.7#L75](https://github.com/AladW/aurutils/blob/master/man7/aurutils.7#L75_).\r\n\r\nThis can be achieved by enabling users of `trizen` to define a hook as [defined by an alias in `makepkg.conf` here](https://github.com/AladW/aurutils/wiki/aurutils(7)#migrating-foreign-packages). This alias is being run after every package built by `aursync`.\r\n\r\nSomething like this that could be added to the configuration file could be great:\r\n```pl\r\npre_build_hook = \"sudo pacman -Syu\"\r\npost_build_hook = \"repoctl update\"\r\n```\r\n\r\nWhat do you think?"},"comment":{"url":"https://api.github.com/repos/trizen/trizen/issues/comments/353090783","html_url":"https://github.com/trizen/trizen/issues/34#issuecomment-353090783","issue_url":"https://api.github.com/repos/trizen/trizen/issues/34","id":353090783,"user":{"login":"doronbehar","id":10998835,"avatar_url":"https://avatars2.githubusercontent.com/u/10998835?v=4","gravatar_id":"","url":"https://api.github.com/users/doronbehar","html_url":"https://github.com/doronbehar","followers_url":"https://api.github.com/users/doronbehar/followers","following_url":"https://api.github.com/users/doronbehar/following{/other_user}","gists_url":"https://api.github.com/users/doronbehar/gists{/gist_id}","starred_url":"https://api.github.com/users/doronbehar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doronbehar/subscriptions","organizations_url":"https://api.github.com/users/doronbehar/orgs","repos_url":"https://api.github.com/users/doronbehar/repos","events_url":"https://api.github.com/users/doronbehar/events{/privacy}","received_events_url":"https://api.github.com/users/doronbehar/received_events","type":"User","site_admin":false},"created_at":"2017-12-20T15:18:13Z","updated_at":"2017-12-20T15:18:13Z","author_association":"NONE","body":"I'm sorry if my arguments came out as empty rants. I didn't want to put it in a way that will make `aurutils` look worse than `trizen` in anyway. Perhaps the usage of the word *mature* wasn't appropriate.\nYou have no idea @AladW how much I appreciate the work you have put into `aurutils` and you should know you helped me and I guess a lot of other curious Arch Linux users to expand their knowledge about the ABS. I'm thankful for that.\n\nRegarding the workaround you suggested, it's great :) I wasn't creative enough to think about it myself and I think it's good enough to close this issue as solved."}}
{"actor":{"display_login":"doronbehar"}}